Playing movie in texture
-
- Posts: 48
- Joined: Thu Jun 15, 2006 6:35 pm
Sorry! knew it would be something obvious that I had overlooked - can't have a 32-bit back buffer with the stencil buffer enabled - I blatantly ignored the second half of this line in initDriver()
if (bits == 32 && !StencilBuffer)
Right, well thanks for your patience - I'm off to find a corner to stand in and feel stupid!
if (bits == 32 && !StencilBuffer)
Right, well thanks for your patience - I'm off to find a corner to stand in and feel stupid!
-
- Posts: 518
- Joined: Tue Mar 29, 2005 9:02 pm
- Location: Alex,Egypt
- Contact:
the code in the Wiki was very old , and i do not develop it instead , i include the feature of playing movie in my magic library ,so you do not have to recompile the code each time and there is no need for DX sdk.
i have managed to play movie with sound with my latest Magic Library for openGL but it limits the FPS to 25 this may make some jerky animations.
i have managed to play movie with sound with my latest Magic Library for openGL but it limits the FPS to 25 this may make some jerky animations.
Magic 2d Library For Irrlicht : http://www.freewebs.com/bcxgl/index.htm
http://www.freewebs.com/bcxdx/index.htm
http://groups.yahoo.com/group/bcxdxc/
http://www.freewebs.com/bcxdx/index.htm
http://groups.yahoo.com/group/bcxdxc/
-
- Posts: 48
- Joined: Thu Jun 15, 2006 6:35 pm
aerial,
I'm afraid i have only tried WMVs not any of the other formats and my problem simply turned out to be me trying to use 32-bit colour format AND the stencil buffer (I was using shadows), having the stencil buffer enabled defaults the colour format to 16-bit. Basically my problem was a mismatch between the the colour format of the texture I rendered the movie on to and the surface I was playing the movie on to first. But I am not sure this will be your problem if your AVI's are working?
I'm afraid i have only tried WMVs not any of the other formats and my problem simply turned out to be me trying to use 32-bit colour format AND the stencil buffer (I was using shadows), having the stencil buffer enabled defaults the colour format to 16-bit. Basically my problem was a mismatch between the the colour format of the texture I rendered the movie on to and the surface I was playing the movie on to first. But I am not sure this will be your problem if your AVI's are working?
I tried your Magic library. I tried one of your movie examples and I get the generic windows error again. I walk it through the debugger and it appears to function correctly but it will not run in the debugger (only when I am walking it through). Not sure what's wrong with it.Emil_halim wrote:the code in the Wiki was very old , and i do not develop it instead , i include the feature of playing movie in my magic library ,so you do not have to recompile the code each time and there is no need for DX sdk.
i have managed to play movie with sound with my latest Magic Library for openGL but it limits the FPS to 25 this may make some jerky animations.
Derik
-
- Posts: 518
- Joined: Tue Mar 29, 2005 9:02 pm
- Location: Alex,Egypt
- Contact:
did you mean you correctlly compile and link the movie program then when you run it you got generic windows error again, am i write?
if so i think the problem existes in your system may be your direct show.
if so i think the problem existes in your system may be your direct show.
Magic 2d Library For Irrlicht : http://www.freewebs.com/bcxgl/index.htm
http://www.freewebs.com/bcxdx/index.htm
http://groups.yahoo.com/group/bcxdxc/
http://www.freewebs.com/bcxdx/index.htm
http://groups.yahoo.com/group/bcxdxc/
Guys, the maximum fps I reach on a GeForce4 MX 4000, is 70 with a movie playing. How do you manage to get fps higher than 200?
Thanks, I disabled stencilbuffer and it worked right, mine was the same problem as yours. Now what should I do if I want to use shadows?funcdoobiest wrote:aerial,
I'm afraid i have only tried WMVs not any of the other formats and my problem simply turned out to be me trying to use 32-bit colour format AND the stencil buffer (I was using shadows), having the stencil buffer enabled defaults the colour format to 16-bit. Basically my problem was a mismatch between the the colour format of the texture I rendered the movie on to and the surface I was playing the movie on to first. But I am not sure this will be your problem if your AVI's are working?
-
- Posts: 48
- Joined: Thu Jun 15, 2006 6:35 pm
^haha yup. that was the same question I was asking myself.
I was trying to reset the device when playing a movie, without the stencil buffer enabled, then resetting the device with the stencil buffer enabled when returning to the game. So far it just crashes but I think that is just my bad programming. Also I only want to play fullscreen 'cutscene' movies - if you want to play movies on surfaces in the game whilst in fullscreen with shadows you are going to have problems
I was trying to reset the device when playing a movie, without the stencil buffer enabled, then resetting the device with the stencil buffer enabled when returning to the game. So far it just crashes but I think that is just my bad programming. Also I only want to play fullscreen 'cutscene' movies - if you want to play movies on surfaces in the game whilst in fullscreen with shadows you are going to have problems
Hi,
i'm using IrrLicht & MagicLibrary for a project at school. Now, it works fine playing a video on a node, which I added to the Quake 3 Map Tutorial but when I move to far away from the node which plays the movie, I only see a black node. When I move close enough to it, the video gets visible.
Maybe it's allready been asked somewhere else in this thread, or on the forum but I don't find it
Greets,
Joris
i'm using IrrLicht & MagicLibrary for a project at school. Now, it works fine playing a video on a node, which I added to the Quake 3 Map Tutorial but when I move to far away from the node which plays the movie, I only see a black node. When I move close enough to it, the video gets visible.
Maybe it's allready been asked somewhere else in this thread, or on the forum but I don't find it
Greets,
Joris
advice needed
Hello Emil
I finally got to writing my own linux movie player using FFMPEG and I ran into some performance problems.
after I decode the data using FFMPEG into raw and lock it, I next use
addTexture to get the ITexture to put into draw2DImage
i can get it to play fine, but it only runs 10 frames per/sec, and its suppose to run 24 frames a sec ,
i found out that addTexture is really expensive to get ITexture, I need a faster way, maybe even at the gl level....
I read your TMovie, what I wrote is basically that except i was trying to display the video using draw2Dimage, which i believe is a big mistake
I notice you use this irrVideo class in, what in the world is that?????
Basically, I can get the movie into raw data, what should I do next ??????
I finally got to writing my own linux movie player using FFMPEG and I ran into some performance problems.
after I decode the data using FFMPEG into raw and lock it, I next use
addTexture to get the ITexture to put into draw2DImage
i can get it to play fine, but it only runs 10 frames per/sec, and its suppose to run 24 frames a sec ,
i found out that addTexture is really expensive to get ITexture, I need a faster way, maybe even at the gl level....
I read your TMovie, what I wrote is basically that except i was trying to display the video using draw2Dimage, which i believe is a big mistake
I notice you use this irrVideo class in, what in the world is that?????
Basically, I can get the movie into raw data, what should I do next ??????
irrlicht game character project
http://picasaweb.google.com/juliusctw/FinishedArt
http://picasaweb.google.com/juliusctw/FinishedArt