7
$\begingroup$

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.

$\endgroup$
3
  • 1
    $\begingroup$ 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. $\endgroup$
    – Chris
    Dec 16, 2021 at 21:09
  • $\begingroup$ @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) $\endgroup$ Dec 16, 2021 at 21:14
  • $\begingroup$ i have no idea what the roadmap is... ;) $\endgroup$
    – Chris
    Dec 17, 2021 at 4:47

2 Answers 2

10
$\begingroup$

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.

$\endgroup$
1
  • 1
    $\begingroup$ nice!! +1...and you are a manual reader too...i can't believe! ;) $\endgroup$
    – Chris
    Dec 17, 2021 at 4:48
4
$\begingroup$

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.

$\endgroup$
3
  • $\begingroup$ i love working workarounds so +1, although Robin's solution is a tiny bit better ;) $\endgroup$
    – Chris
    Dec 17, 2021 at 4:49
  • $\begingroup$ @Chris of course, I simply didn't know it's possible in geo... :) $\endgroup$ Dec 17, 2021 at 9:31
  • $\begingroup$ Me too…love learning new ways and solutions😍 $\endgroup$
    – Chris
    Dec 17, 2021 at 9:45

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .