Re: [osg-users] ODE Trimesh with OSG ?

2008-08-25 Thread Mattias Helsing
Hi Carlos, I havn't got to osg::TriMesh (yet( so you'll have to dig the source on that. I wrote terrain nodetree, so could be anything from flt to ive to 3ds, i.e the algo the I described need only vertices and drawables. I dont' know what your software will eventually do, and you may need the

Re: [osg-users] ODE Trimesh with OSG ?

2008-08-22 Thread Carlos Sanches
I said terrain but I want to load a object from 3DMAX and do collision if trimesh in ODE. First ,I m trying to understand how to transform my object that I read like a .ive file in a osg::TriMesh . May you explain me ? On Mon, Aug 18, 2008 at 4:06 AM, Mattias Helsing [EMAIL PROTECTED]wrote:

Re: [osg-users] ODE Trimesh with OSG ?

2008-08-18 Thread Mattias Helsing
Hello Carlos! We use a TriangleRecorder (it's a NodeVisitor) and applies that to our terrain nodetree. It records vertices and triangles on all drawables. We then memcpy those into ode::dVector3[numVertices] (vertices) and int[3*numTriangles] (triangles). Then run dGeomTriMeshDataBuildSimple(

[osg-users] ODE Trimesh with OSG ?

2008-08-17 Thread Carlos Sanches
Hi! I m doing collisions using ODE with OSG and this is very cool, but , I want to do a deformed ground with some triangles in 3DSMAX for example. I know that I have to use trimesh but how do I have to load the object ground that ODE understand ?? Have anybody an example using trimesh ?? Thank