7

I am trying to model a grid of lights using geometry nodes. I combine several nodes like grid, instance on points, etc. as depicted in the following figure: enter image description here

I can attach instances of any mesh to the points, but it does not work for light.

Any clue ?

Regards.

Pueblo2708
  • 73
  • 1
  • 3
  • 1
    I would guess because light has no geometry it won’t work. Same problem with normal array modifier, which don’t work with lights either. – Chris Dec 16 '21 at 21:09
  • @Chris Is object node in the roadmap of everything node ? Or will it somehow add light at a point (like curve, point cloud and volume isn't geometry but still is in geometry node) – softyoda yoann Dec 16 '21 at 21:14
  • i have no idea what the roadmap is... ;) – Chris Dec 17 '21 at 04:47

2 Answers2

10

I had to look this up, but.. from the manual, it seems you have to check the 'As Instance' field of the Object Info node:

As Instance:
Output the entire object as single instance instead of realized geometry. This allows instancing non-geometry object types, because the output will contain an instance of the object.

It also works, if you put the light in a collection, and use the Collection Info node.

enter image description here

You can't Realize Instances, it seems, because the lamps are not geometry, and they disappear if you apply the GN modifier.

Robin Betts
  • 76,260
  • 8
  • 77
  • 190
4

Enable instancing in Object Properties, then parent a light to the object:

Of course if you want to parent the lights to only some vertices of the object, you need to duplicate the object, delete vertices that aren't supposed to instance lights, and disable instancer rendering in the options visible in the first screenshot above.

Markus von Broady
  • 36,563
  • 3
  • 30
  • 99