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]
create an animated door
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.
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.
-
- Posts: 395
- Joined: Fri Apr 08, 2005 8:46 pm
http://irrlicht.sourceforge.net/phpBB2/ ... php?t=7119
Uses a physics engine and a milkshape animation file. Functional doors, stairs, elevators.
HTH
Uses a physics engine and a milkshape animation file. Functional doors, stairs, elevators.
HTH