Hi Sergey, My overlay node isn't under a camera node, but is it possible that the overlay projection mecanism is using a camera with subgraph attached to it and so the update traversal doesn't reach the subgraph ??
Best regards, 2011/2/21 Sergey Polischuk <[email protected]> > 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" <[email protected]>: > > 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 > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > -- Alexandre AMALRIC Ingénieur R&D =================================== PIXXIM S.A. 73E, rue Perrin-Solliers 13006 Marseille http://www.pixxim.fr
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

