[ODE] Quake3 BSP / Trimesh problems
Sean S Cullen
Sean at blackscreen.org
Fri Sep 10 07:44:50 MST 2004
It looks like you are not setting the Triangle Indices. I am not sure if
the source data is a triangle strip or a set of triplets but either way
the data being passed to dGeomTriMeshBuildSimple is wrong. You need to
pass 3x the number of indices describing the triangles.
> Afraid not :(
>
> I tried it (with both dGeomTriMeshBuildSingle(...) and
> dGeomTriMeshBuildSimple(...), and it had the same sort of result.
> Thanks anyway, though.
>
> -paul
>
>
> On Fri, 10 Sep 2004 11:16:23 +0200, der.tobi at t-online.de
> <der.tobi at t-online.de> wrote:
>> Hi Paul!
>>
>> i think i know what your problem could be....
>> same thing kept me up for long hours nearly two weeks... :(
>>
>> > Data = dGeomTriMeshDataCreate();
>> > dGeomTriMeshDataBuildSimple(Data, (dReal*)Vertices,
>> > count,Indices, count);
>> >
>>
>> try multiplying the 2nd count (which is the indexcount) with 3...later
>> in
>> the code it is divided by 3 to get the number of triangles...
>>
>> that helped in my case.... but i used dGeomTriMeshBuildSingle(...)..
>>
>> good luck!
>>
>> regards,
>> tobias schild
>>
>> ----------------------------------------------------------------------------
>> let's bomb texas! they have oil too....
>>
>>
> _______________________________________________
> ODE mailing list
> ODE at q12.org
> http://q12.org/mailman/listinfo/ode
More information about the ODE
mailing list