A few questions

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
NightBird
Posts: 12
Joined: Tue May 25, 2004 6:47 pm

A few questions

Post by NightBird »

Ok, I just started using Irrlicht, and I'm setting it up, wrapping it in classes that I'll use, etc etc etc. Well, I'm wanting to know a few things.

one, I know you can enable shadows, but I haven't been able to figure out how to disable them. The reason why I want to know how to do that, is so that if a mesh is far enough away, I'll disable shadows to improve rendering.

two, I was wondering if there was a way to specify other animations other then the MD2 type. I know for .x files, it would be relatively easy to refrence them by a simple string because of the format the .x file contains animations.

Also, I'm wondering if there are any tutorials, or any place I can go to find help on changing the default method for the mouse and keyboard input for using irrlicht engine.

Thanks!
arras
Posts: 1622
Joined: Mon Apr 05, 2004 8:35 am
Location: Slovakia
Contact:

Post by arras »

As for x format, Irrlicht loads and play x animations without problems. Just make your animation in animation program, export to x, load in irrlicht and play frames you need.
NightBird
Posts: 12
Joined: Tue May 25, 2004 6:47 pm

Post by NightBird »

arras wrote:As for x format, Irrlicht loads and play x animations without problems. Just make your animation in animation program, export to x, load in irrlicht and play frames you need.
How would I specify which frames I need? I know that there are ways to have multiple animations in the same x file, and you can specify which one based on a string. I don't know of any other way of setting the animation for anything other then the MD2 method.
arras
Posts: 1622
Joined: Mon Apr 05, 2004 8:35 am
Location: Slovakia
Contact:

Post by arras »

You make only one animation let say 0-100 frames. While frame 0-20 is idle animation, 20-40 walk, 40-60 run, 60-80 jump, 80-100 die. Thats just fictional of course, you can divide your frames as you wish.

When you want your model to run you tell Irrlicht to loop animation between frames 40-60, when you want it to die 80-100 an so on...
Post Reply