Hi Julian,
On 6/7/09 6:28 AM, Julian Looser wrote:
root
-- camera (mv & proj for left wall)
--- model
--- lightsource
-- camera (mv & proj for center wall)
--- model
--- lightsource
-- camera (mv & proj for right wall)
--- model
--- lightsource
Am I putting my lightsource in the wrong place in the scene graph? I
thought it should be a sibling to what you want lit? Even though the
projection and view matrices are different for each camera, the lighting
should be consistent, right?
(The model and lightsource are a shared graph, right?)
You can place the osg::LightSource anywhere you like in the scene graph, OSG has no
concept of limiting light to a certain sub-graph.
With regards to the different lighting, how is your model tessellated? If it's coarsely
tessellated and/or you're using face normals then the lighting calculation might only be
done on the corner vertices and interpolated from there.
Cheers,
/ulrich
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org