[osg-users] Load OSG trimesh to ODE: Read Vertices from Mesh after Loading with osgDB::readNodeFile

Tom Koller tomlucas at uni-bremen.de
Fri Jul 20 08:06:48 PDT 2018


Hi,


i created a 3D Mesh (3D Cube for test) in Blender and i can read and show it with the osgDB function
readNodeFile

I would like to further use the loaded trimesh in ODE to calculate dynamics and contacts.

I was not able to figure out how  to read the vertices,

I discovered that i can convert the retrieved osg::Node to osg::Geometry and get the VertexArray of that one.

But for any reason the dimensions of the array are 
12
152
8

instead of something like
8
3
what i would assume for a 3d Cube


If anyone has an idea what i can do to retrieve the vertex data or you need more Details about my Implementation i would be happy to hear from you.


... 

Thank you!

Cheers,
Tom

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=74370#74370







More information about the osg-users mailing list