GLfloat? It should be double; you are using
"dGeomTriMeshDataBuildDouble" after all.
> dGeomSetData(terrain,triMesh);
Why are you doing that?
> GLfloat *vertices2;
> GLint *indices2;
Should be
double *vertices2;
int *indices;
Even if your GLint is a typedef for int, you never know when it might
just throw compiler errors (I know of at least one platform where GLuint
is not just a typedef for unsigned int).
> 1 more thing if i use the commented line dMassSetTrimesh then it gives
> a check that mass must be >0 .
The fact that you are trying to create a mass for a terrain suggests you
are not too sure of what you are doing. I would recommend first trying
to play along the demos. For example, demo_basket.
> These were the only commands i used concerning the trimesh. where am i
> going wrong? since the vertex and index arrays r working fine and
> getting rendered they must be fine right?.
You do realize ODE is not a rendering library, right? The fact that
something is being drawn by another library doesn't mean ODE is actually
simulating it.
--
Daniel K. O.
"The only way to succeed is to build success yourself"