Hi! I have my GameObject class that contains the position of each dynamic game object in world coordinates. I also have my GameObjectManager class that contains a vector of all game objects. This vector is empty when the program starts, but populates with objects during runtime (some objects is also removed during runtime).
I've searched the mail achieve but I can't find any good example how to add or remove objects to the scenegraph during runtime. I guess it has to be done in some form of callback. But which one? According to http://www.mail-archive.com/osg-us...@openscenegraph.net/msg00725.html it is a bad idea to do it in a updateCallback. Hopefully someone could give me an example or at least point me at the right direction. Maybe there is an osg example I should study in depth? /Björn Blissing _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org