So I have been developing in jmonkey for about six months now, and I am getting really familiar with most of the ends and outs of the system. I have built several quick example games with all the common features: audio, animation, shadows, nifty guim, terrain, etc. But I am still very confused about how nodes and lights interact, and about the differences between getLocalLightList() and getWorldLightList().
Here are my questions as best as I can articulate them:
- When I add a light to the rootNode, do all nodes under rootNode see that Light in getLocalLightList()?
- When I add a light to a sub-node does that light render only on the items within that node?
- If I add the same light reference to two different nodes will that light then appear on both of them?
and I have a final off topic node question:
- If I create an geometry; and then attach that geometry to two sub nodes; and then attach those two sub-nodes to the rootNode; will there be two instances of that geometry within the rootNode?
Thank you for taking some time to help me.