Re: [osg-users] How to take out and manipulate an object from an obj model

2009-10-30 Thread Robert Osfield
Hi Dat, Finding specific children in a loaded scene graph is very common thing to do, and one usually just write a custom NodeVisitor to do it. Have a look at the osgplanets and osgsimiulation examples for an example of FindNamedNodeVisitor - use this as a template and modify to specialize it

[osg-users] How to take out and manipulate an object from an obj model

2009-10-29 Thread Nguyen Tien Dat
Dear all, I have an obj model of a supermarket that contains thousand of objects. I load the model into the scene graph as: osg::Node* loadedModel = osgDB::readNodeFile(supermarket_new.obj); Now I would like to take an object from the whole scene (a coke bottle, for example) and manipulate it. I