Hi –
I’m using the osgUtil::Optimizer to ( …as you can guess… ) optimize my loaded visual model. Prior to doing that, I save the node in a local osg::Node pointer. When I process the node through the optimizer, I appear to lose the pointer on the correct object; well… the pointer is still there, the contents have turned to junk however.
Is there a way I can NOT lose the pointer and still perform the opimitization? Is this normal behavior? Can I request from the optimizer the new “valid” pointer?
Here is a snippet of my code:
osg::Node * wModelNode = osgDB::readNodeFile(ret.c_str());
osgUtil::Optimizer optimizer;
optimizer.optimize(wModelNode);
The contents of wModelNode just becomes junk after the optimizer runs through it (ironically… ;)
Thanks
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
