Hello,

the lights in my application doesn't work. I think I don't understand the
principle of the lights and the light sources. When I use an object and a
light in a light source it works fine.

That’s the graph with one light:

Root
  |----Object 
  |
  |----LightSource
                |
                |----Light (LightNum = 0)


So, when I want to use more lights I see only the first light.

That’s the graph with two lights:

Root
  |----Object 
  |
  |----LightSource1
  |             |
  |             |----Light1 (LightNum = 0)
  |
  |----LightSource2
                |
                |----Light2 (LightNum = 1)


Is it necessary that the object is hierarchical under the light? And when I
want to use more lights, how look like the graph? And when I have more
objects, can I use the lights for a collection of objects?

I would be grateful to get a little introduction or tips about the lights
and light sources in OSG.

Cheers,

Martin

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to