opcode 1.3

Started by
5 comments, last by Pegasus 19 years, 8 months ago
Do anyone know where can I find code examples of the utilisation of Opcode 1.3, or give me hints to get started with it? I've found a port of opcode 1.3 for the mingw compile, as I use dev-c++ But the programming of opcode 1.3 seems completely different than the 1.2 version, there no reference for OPCODE_Model or OPCODECREATE in the source :/ , so the user manual doesn't help at all. thx :-)
Advertisement
try ODE
Its an open source physics engine which uses ode.
And from memory, the opcode website provides links to various projects which use opcode, so you could just follow the links from there.
thx ;-)

I had a look on ODE's source, I think it will be ok with some work on it :-)
I need some help again :-)

I am creating the temporary mesh but I don't know if i'm doing it correctly

MeshInterface Mesh;
Mesh.SetNbTriangles(12);
Mesh.SetNbVertices(22);
Mesh.SetPointers((IndexedTriangle*)cube_faces, (Point*)cube_vertices);
Mesh.SetStrides(???, ???);

cube_faces is an array of bytes describing the cubes' triangles
cube_vertices is an array of floats describing the cubes' vertices

Am I supposed to pass theses arrays that way?

And I don'k know what are the SetStrides' parameters :/

Thx :-)
Ups , wasnt logged, that post was mine
Ok, I just found an example here :

http://www.ogre3d.org/phpBB2/viewtopic.php?t=4395&highlight=opcode
in the collide funtion (mesh-mesh collision), i must give 2 world matrices : 1 per model :
Collide(ColCache,mat1, mat2);

I suppose these are the modelview matrices?

Is there a function to get the content of the modelview matrix?

thx

This topic is closed to new replies.

Advertisement