Hi, Alexandre.
 
If your overlay subgraph is under osg camera, then update traversals dont reach there, they stop at camera node.
You can try to add this uniform to stateset of some node before camera in scene graph, so it will be updated and shouldn't break anything.
 
Cheers, Sergey.
 
 
21.02.2011, 17:57, "Alexandre Amalric" <alex.pix...@gmail.com>:
Hi osg-users,
 
I recently tried to attach a fragment shader to a node and set it as an overlay subgraph. 
My shader is using a uniform that I want to update, so I attached a derived osg::Uniform::Callback  to it but this one is never called.
 
When the same node is added to the scenegraph and not only as an overlay subgraph the callback is called.
 
Is it possible that the updatevisitor is never called on models wich belong to an overlay subgraph ??
 
For info, I'm using osg 2.8.3.
 
Kind regards,

--
Alexandre AMALRIC                   Ingénieur R&D
===================================
PIXXIM S.A. 73E, rue Perrin-Solliers 13006 Marseille
http://www.pixxim.fr

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

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

Reply via email to