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

2018-08-06 Thread Tom Koller
So here is hot it is done: One can use a custom class extending NodeVisitor to "vist" all geometries in a node and extract the data: Code: //Meshvisitor.hpp #include #include #include class MeshVisitor: public osg::NodeVisitor { public: static std::vector vertice_allocs;

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

2018-07-23 Thread Tom Koller
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

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

2018-07-20 Thread Tom Koller
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