Hi all

In my current OSG-project I have to switch between different scenes. 'Cause of 
convenience-reasons I'm still using the SSM at the moment.

To me it seemed logically to use the setRoot()-Method of the 
SimpleSceneManager to switch between the different scenes. A simple example 
to illustrate what I tried:

        NodePtr scene = makeTorus(.5, 2, 16, 16);
 NodePtr scene2 = makeTorus(.5, 2, 16, 16);

        mgr = new SimpleSceneManager;
        mgr->setWindow(gwin);
        mgr->setRoot(scene);
 mgr->setRoot(scene2);
 mgr->setRoot(scene);
        mgr->showAll();

But this crashes the application, because as it seems the call to 
"mgr->setRoot(scene2);" deletes the old Rootnode (= "scene").

Is this a known/wanted behaviour?

Thanks in advance
/Stefan


-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to