Hi John,
I can't really help with the crux of your question, but I was wondering
about one thing:
1. single light source object can be placed two times to the scene.
Because of multi-parenting, the light may have two different
transformations. Although one object and one unique pointer, it
identifies two light sources, thus it is not unique light
identification.
How do you give a single light source two different OpenGL light IDs? Or
do you manage that all in shaders, thus without the restrictions of
light IDs?
As I understand it, if we're on the fixed pipeline then multi-parenting
lights wouldn't make sense because the light would still have only one
ID, and the traversal would just use the last (first?) transformation
when sending that light's state each frame. How would you handle this?
I think you're concentrating on an edge case. It's much easier to
concentrate on the general case, which is that you'll have multiple
unique lights in the scene, each with only one parent and one OpenGL
light ID.
Just curious.
J-S
--
______________________________________________________
Jean-Sebastien Guay [email protected]
http://www.cm-labs.com/
http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org