Advertisement

Tutorial 35 - Playing AVIs

Started by October 30, 2002 04:24 AM
2 comments, last by Jon Alma 21 years, 3 months ago
I''ve been playing about with the code from NeHe tutorial 35 (playing AVIs) and have come up against an interesting problem when trying to combine the basic AVI functions into some of my own code. Basically when I do this I end up with a white texture being displayed to the screen (this texture should be the destination for the AVI frame data). On top of this I have a flickering version of the AVI with 256 x 256 dimensions. From what I can see the destination texture is being ignored and the AVI data is for some reason being blitted directly to the screen. My guess is that I''m doing something nasty with the DrawDibDraw function or with the texture binding. Probably just a stupid coding bug, but I can''t see it at the moment. Has anyone else encountered this kind of problem, or has anyone else successfully intergrated the AVI code into a multi-texture application? Any help appreciated (sorry I can''t provide any source code for people to look at for the moment but the AVI code is pretty deep in amongst a lot of other totally unrelated code - I''m trying to trim this away a bit to help the debugging).
Jon.
_______________________________________
Legends from the Lost Realms
Without the code, it''s pretty hard to tell you what''s going wrong. Are you sure your texture is big enough to hold the AVI image ?
Advertisement
Sorry about not being able to provide the code yet.

The avi is exactly the same one used with the tutorial code.
In fact the avi handling code is exactly the same, with the exception of some lines added to handle texture binding.

Either I''m doing something stupid here or it''s a problem with differences in the setup of Open GL or the bitmap used to hold the next frame.

If I just got the white texture this would be understandable, but I''m really foxed by the fact that the avi is blitted to the screen, rather than to the texture.

I''ll continue with my debugging and if I don''t get anywhere I''ll post some source code.

Cheers,

Jon.

Jon.
_______________________________________
Legends from the Lost Realms
Hello Jon Alma
i am haveing the same exact problem! Did you maged to slove it? can u give me a hint?

This topic is closed to new replies.

Advertisement