Page 1 of 1

Irrlicht - few quaestions about meshes and nodes

Posted: Mon Jan 25, 2010 2:22 pm
by paradoximo
Hi.
I don't want to make looooooong post and i think i write all my asks here

I have a problem with:

1.Animating another models than MD2 [b3d like ninja b3d in examples]:
node[or something]->setMD2Animation(EMAT_STAND);

don't works with modelslike b3d or any other format... i don't know how i can animate bones... i tried :

node->animateJoints(15-30); // walk animation of ninja [it was wroted in readme txt in media]

and didn't work too even when i pasetd it into loop (blah blah... while(device->run())
{
...
node->animateJoints(15-30);
}

2.Steering a mesh by keyboard:
Is there any easier way? I saw the myEventReciever classes and i was shocked how much are they having lines to run [at the beginning in the middle and in the loop]

I saw the SKeyMap tutorial on wiki but it doesn't works... :(

3.Collisions...
I think ths is the biggest problem bcs:
All the tutorials are only for older versions of physics engines and irrlicht and only for windows...

I don't want to reinstal main OS for collisions in game only...

How to compile these 2 sdks together on linux?


That's all from me... Big thanks from me if anyone reply.

Posted: Mon Jan 25, 2010 3:44 pm
by hybrid
The setMD2Animation is only for md2 meshes. That's right. But if you read the examples carefully, you'll see that you can also use another command to set the ranges of those animations by numbers. You cannot give an expression like 12-20, though, because that would give -8 and is not a valid animation range.
You just need the key array from example 4 and you can add the movement lines in your main loop one by one. That's just two lines per key you want to handle. You can also write your own scene node animator which takes the key events. A little more coding, but cleaner.
Collision can be done within Irrlicht. Example 7 is always up to date. Or you use an external physics engine. All engines that are available for Linux also have some code examples on the forum. Just use the search engine.

Posted: Tue Jan 26, 2010 12:16 pm
by paradoximo
thx hybrid ;)

I found tutorial.

Here is by dudMAN:

http://irrlicht.sourceforge.net/phpBB2/ ... p?p=136776

For all people which have problems with irrlicht [like cams collisions or steering] i'm sending to link at the top of this post ;).