Hi, Nico,

Nico Kruithof wrote:
Hello,

Say I would like to call a (global) update function every frame (not
directly associated with a node), just before the update of all scene
graph objects. How would I go about? Is there a call back function in
osgViewer that I missed? Or should I make a new root node that gets
called before all other nodes?
Instead of calling run() on your viewer, you can split it up and do the frame loop yourself...

while (!viewer.done)
{
  yourGlobalFunction();
  viewer.frame();
}


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

Reply via email to