Page 1 of 1

create an animated door

Posted: Sun Aug 21, 2005 12:45 pm
by Guest
How to create a functional door in a scene ? I would like a door which can be opened when we are closed to it and when a key is pressed (or a mouse click).
Does irrlicht can retrieve the specifics in a bsp file (func_door for example) or does the door must be created from Irrlicht ?
Many thanks

(I'm using devC++ and QuARK for modelling scenes)[/i]

Posted: Sun Aug 21, 2005 1:50 pm
by WToma
I think you have to create your door from code. Anyway, if there is a better solution I would be intrested too.
Toma

Posted: Sun Aug 21, 2005 1:58 pm
by luckymutt
The best way I've found is to use the *.x file format with animation.
or you could just create a box or scene node and have it rotate by code.

I don't know about QuARK, but there are other (free) modelling packages that you can use to create the animation and export as *.x file.
Then its just a matter of triggering the animation.
However, I seem to be having some issues getting it to play the way I want it to, but that could just be how I've done the model, I dunno.

In fact, check out the thread "Animation Driving Me Nuts" that I just started last night.

Posted: Sun Aug 21, 2005 9:14 pm
by dhenton9000
http://irrlicht.sourceforge.net/phpBB2/ ... php?t=7119

Uses a physics engine and a milkshape animation file. Functional doors, stairs, elevators.

HTH