Hi,
I'm trying to make a door animation in AVI format that plays whenever the player presses the 'Action' button at a door. (Similar to the style in earlier versions of Resident Evil.)
Does anyone have code samples on transitioning between playing the game, playing the door video, and then resuming the game?
Thanks!
Door animation
-
- Posts: 14
- Joined: Wed Jul 04, 2007 4:57 am
well, you can't play avis with standart Irrlicht...
but there is a thread about playing avis in a texture !!!
search the forums for this...
or if you're using Irrlicht v1.2 you also can use my IrrExtensions, there I included an avi player !!!
(and for Irrlicht v1.3 you'll have to edit the sources "by hand" then)
but there is a thread about playing avis in a texture !!!
search the forums for this...
or if you're using Irrlicht v1.2 you also can use my IrrExtensions, there I included an avi player !!!
(and for Irrlicht v1.3 you'll have to edit the sources "by hand" then)
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
-
- Posts: 14
- Joined: Wed Jul 04, 2007 4:57 am
Edit the sources by hand? What do you mean? Why would something be supported in the earlier versions of Irrlicht and then later removed?
I don't really think it's better to play the avi in a texture. That's kinda a weird way of doing it.
Cos then I have to add a timer to automatically remove myself from the map with small room and a floating texture after 5 seconds (the time taken for the door) or something.
I don't really think it's better to play the avi in a texture. That's kinda a weird way of doing it.
Cos then I have to add a timer to automatically remove myself from the map with small room and a floating texture after 5 seconds (the time taken for the door) or something.
you'll have to edit the Irrlicht source code (add the new features) and recompile the dll...FireCross88 wrote:Edit the sources by hand? What do you mean?
and as far as my IrrExtensions only work up to version 1.2 of the engine you'll have to edit the sources directly...
for v1.2 my IrrExtensiins does this for you...
no, this was never supported by Irrlicht, it's a feature I added by my self (like all of my extensions), this is why you have to edit the sources...FireCross88 wrote:Why would something be supported in the earlier versions of Irrlicht and then later removed?
this doesn't mean the avi is attached to a mesh (but you could), it's because you need to store the graphics data from the avi somewhere and a texture is used for this...FireCross88 wrote:I don't really think it's better to play the avi in a texture. That's kinda a weird way of doing it.
no, you can draw the texture over the whole screen and use the playing time as the timer (check when the avi is ended)...FireCross88 wrote:Cos then I have to add a timer to automatically remove myself from the map with small room and a floating texture after 5 seconds (the time taken for the door) or something.
I agree with thishybrid wrote:IMHO the idea of doing a door animation as an avi movie is the weird point in this setup.
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java