Emmanuel Roche wrote:
Those questions were indeed closely related. Yet since I'm not planing to use slave cameras for the moment I guess I'm better of with my "node cullcallback to update uniforms", at least I will try that.

The subject was poorly chosen. The thread was more related to how to set a different uniform per cull/draw pair - per display or per window. Setting the uniforms in the slave camera StateSet is one solution, and Robert's recent code change is designed to support that usage.

I wanted my solution to work whether the application used slave cameras or not, so, like you, I needed this to work without slave cameras. The solution I choose was to push a StateSet containing a uniform onto the CullVisitor's state stack.

Hope that helps.
   -Paul

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to