You're right Paul, it will be easier.
I will look this example.

Thanks.


2007/4/27, Paul Martz <[EMAIL PROTECTED]>:

 You don't need to know where the vertices are read in order to modify
them.

After you read the file into a scene graph, you should traverse the scene
graph with a NodeVisitor that finds all the Drawable objects in the scene
graph. You can (generally) get the vertices from the Drawable and modify
them in your custom NodeVisitor.

Search through the example code for "NodeVisitor" to get an idea of how to
do this.
   -Paul



 ------------------------------
*From:* [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED] *On Behalf Of *christophe loustaunau
*Sent:* Friday, April 27, 2007 8:43 AM
*To:* osg users
*Subject:* [osg-users] readNodeFile


 Hello,

I wan't to modifie the value of every vertex read from a file *.ive.
But i can't find where the vertex are read.

I read the file with :

osg::ref_ptr<osg::Node> loadedModel = osgDB::readNodeFile(file);

Then with the debug i have found that it goes in :
ReaderWriter::ReadResult Registry::read(const ReadFunctor& readFunctor)

But after i don't know.
If someone knows where the values of the vertex are read it will be
helpfull.

Thanks.


_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to