Tobias Kilian wrote:
I thought their would be a nicer way of doing this.
I tried to have a second "root", where all the texturedNodes
ADDITIONALY get "listed" :
beginEditCP(texturedCubesRoot);
texturedCubesRoot->setCore( Group::create() );
texturedCubesRoot->addChild( texturedCube);
endEditCP(texturedCubesRoot);
and switch between the LOD structure and the flat texturedCubesRoot.
Here lies the problem: The nodes under texturedCubesRoot never get drawn.
Small comment: Remember to create new Node instances when you create a
second graph (or use cloneTree(), which does this automatically for an
entire (sub)graph), otherwise addChild() will remove the node from the
previous parent and it will only be present in the new one. Nodes can
only have one parent in OpenSG, however, a Core may belong to several nodes.
Best regards,
/Marcus
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users