Discussion:
[osg-users] Load OSG trimesh to ODE: Read Vertices from Mesh after Loading with osgDB::readNodeFile
Tom Koller
2018-07-20 15:06:48 UTC
Permalink
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
Tom Koller
2018-07-23 09:18:53 UTC
Permalink
With the help of the Beginners Guide and this entry:

6391

i managed to figure out the basic idea.

Will upload some sample code when its ready to use.

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

Loading...