[ODE] Opcode mesh format

Julien LOLLIVIER julien.lollivier at quiris.com
Sat Jul 12 04:59:02 2003


First of all, i've compiled ODE 0.039 + OPCODE without any noticable problem (using single precision for ODE, and -O1 only for OPCODE) with gcc 3.2.2 (mdk9.1)
My question is about mesh format in OPCODE:
dGeomTriMeshDataBuildSimple() works with indexed mesh, as I work with "linear" ones.
Will i get *performance* impact (memory's not a problem) if i only "unroll" my mesh into OPCODE structs ?

For example:
indice[0]=1
indice[1]=2
indice[2]=3

indice[3]=4
indice[4]=5
indice[6]=6

(where vertices 3 and 4 have the same coordinates) instead of:

indice[0]=1
indice[1]=2
indice[2]=3

indice[3]=3
indice[4]=5
indice[6]=6

Xfennec.
http://raydium.cqfd-corp.org