ODE + Irrlicht = (How To?)

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
KillerXX7
Posts: 22
Joined: Sat Oct 07, 2006 4:50 pm
Location: Russian Federation
Contact:

ODE + Irrlicht = (How To?)

Post by KillerXX7 »

Has learned to use a little Newton Dynamics Engine, now turn for Open Dynamics Engine what to compare and choose for itself.

Has looked for examples in the Internet - nothing has found: (
Example on this site very old.


Who used ODE, give me please examples how to use ODE 0.7 in Irrlicht 1.1
Think Fast, Act Right... OR Be Dead :)
Simson
Competition winner
Posts: 95
Joined: Wed Nov 30, 2005 8:53 am
Location: France : midi pyrénées

Post by Simson »

Hello,
If that can help you, I have made a small sample with Irrlicht and Ode 0.7.
You can find it here :
http://www.irrlicht.fr/forum/viewtopic.php?id=25
KillerXX7
Posts: 22
Joined: Sat Oct 07, 2006 4:50 pm
Location: Russian Federation
Contact:

Post by KillerXX7 »

Simson, looks cool :)
Thanks!!!!

May be update an example on a site on more modern? ;)

The question still opened. The more examples - the better :)


And one more question on a theme. How in ODE to show collisions?
For Newton it looks so:

Code: Select all

void _cdecl NewtonDebugCollision(const NewtonBody* body, int vertexCount, const float* FaceArray, int faceId) { 
   core::vector3df p0 (FaceArray[0], FaceArray[1], FaceArray[2] ); 
   const video::SColor c0(255,55,255,0); 
   for (int i = 2; i < vertexCount; i ++) { 
      core::vector3df p1( FaceArray[(i-1) * 3 + 0], FaceArray[(i-1) * 3 + 1], FaceArray[(i-1) * 3 + 2] ); 
      core::vector3df p2( FaceArray[i * 3 + 0], FaceArray[i * 3 + 1], FaceArray[i * 3 + 2] ); 
      core::triangle3df t; 
      t.set(p1*1, p2*1, p0*1); 
       
	  GEngine.Driver->draw3DTriangle(t, c0); 
   } 
} 
And in ODE how to make?
Think Fast, Act Right... OR Be Dead :)
sgt_pinky
Posts: 149
Joined: Sat Oct 14, 2006 11:20 am
Location: Melbourne, Australia

Post by sgt_pinky »

The ODE manual is here: http://www.ode.org/ode-latest-userguide.pdf

Your question is very straightforward once you have read the manual.
Intellectuals solve problems - geniuses prevent them. -- Einstein
#irrlicht on irc.freenode.net
Post Reply