Hello Rene,
I've been browsing the mail archive to find the answer to my question but I
haven't found anything at all. I basically want to manipulate the vertices of a
model loaded by the osgDB::ReadNodeFile() function. ReadNodeFile() returns a
osg::Node. I was hoping this might actually be a osg::Geode, but apparently it
isn't.
To add to what Paul Melis said, in addition to the osg::Node* actually
pointing to an osg::Geode*, it could be that there are some transforms
above the geode itself. So you may need to use a NodeVisitor to find
your actual Geode, and then do whatever you want to do with the
underlying Geometry objects (which you will also dynamic_cast from the
osg::Drawable* returned from geode->getDrawable(i) ).
It could be a useful exercise to convert your models to .osg format,
which is plain text and can be inspected.
osgconv model.flt model.osg (for example, if it's an flt)
This will tell you what the structure will be once the model is loaded
into OSG. readNodeFile returns the top node in that structure.
Hope this helps,
J-S
--
______________________________________________________
Jean-Sebastien Guay [EMAIL PROTECTED]
http://www.cm-labs.com/
http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org