Sign in to follow this  
Pegasus

opcode 1.3

Recommended Posts

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 :-)

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
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 :-)

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this