Dear All, I would like to use dynamic scenegraph in my app, while having the viewer running.
I've read a lot of threads about that, but I just would like to know something : - I create a "complex" object with its local scenegraph - I need to add the local root of the object somewhere in the scenegraph already used by the viewer (running). I understand that I need to add this object in the SG during the update operation. But my problem is that, if my object got an updateCB, this cb will be called only if my object is attached to the SG, so I can't do any "parent->addChild(this)" in my CB... So here are my questions : * Must I create a special case in an updateCB of the node (in the already used SG) which is the future parent of my new object ? And then in this CB do the "addChild(futureChild)" ? * is there any other way to do this properly ? * when creating the local SG of my object, and if my object is not yet in the global SG, can I use securely addChild calls out of any updateCB scope (theses calls are only used to create the local SG)? For the moment I understand that modifying the used SG out of the update step is not secure, but I also understand that I can do this on any local SG which are not yet attached to the visited SG, am I right ? Hope I'm clear in my questions... not easy to sum up ;) Thanks Eric ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=30393#30393 _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org