[ODE] Rules for ODE trimeshes

Arturo Colorado Garín acolorado at telefonica.net
Tue Oct 5 19:07:36 MST 2004


> It seems that simple meshes - that is contiguous ones like boxes and
> small meshes up to around 28 vertices - are fine and
> dGeomTriMeshDataBuildSimple can generate trimesh data for them, but as
> soon as I feed it something like a teapot, or a non-contiguous mesh like
> some 3d text I get an access violation in opc_meshinterface.h line 135
> or 136 with the teapot - I have no idea why this is. The algorithms that
> give ODE the information are identical for both simple meshes and the
> more complex meshes, they're simply acting as a go-between between
> DirectX D3DCreate[Text, Box or Teapot] functions and ODE. The directx
> meshes are just plain meshes, not strips or fans or anything like that,
> and as far as I can see in my debugger, all the data is being copied
> between the DirectX ID3DXMesh struct and the dVector3 and int arrays
> just fine.

Take a look at this other post I've just written:
http://hook.org/pipermail/ode/2004-October/014187.html

Maybe it's not the same case as it looks like you've got simple meshes
working correctly. However, it sounds a little strange simple meshes work
and complex ones don't.

Good luck.

--Arturo



More information about the ODE mailing list