http://GameProgrammer.Com

Programming

GP Mailing List
     Thread Index
     Date Index

ATXGPSIG List
     Thread Index
     Date Index

Google
>

Home

Wise2Food



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gameprogrammer] Re: rendering video using OpenGL and SDL



for ( ; ;)
{
     // getting input here or what ever . . .
     //
     //

     if ( movie.isPlaying( ) == true)
     {
         // render the movie here
         movie.renderCurrentFrame( );
     }
     else
     {
         renderTheFrameFromTheGame( );
     }
}

when the game start, the game is rendered very fine, but when the movie is start playing, the movie is not rendered ? ? ! ! ! and if I comment the: renderTheFrameFromTheGame( ); line the movie is rendered as well ? ? ? ! !

I doubt at first in the projection matrix and the view matrix in these two functions, but I see that all is fine and it's not about matrices or something in the view, I think maybe the OpenGL buffer is locked for some reason when I want to render the movie surface to the openGL buffer, so any one can help me with this ?

So, when written as is, the movie is NOT rendered when it should be, but if you comment out the code to render the game without the movie, then the movie IS rendered...? It seems you may have mistyped something, because that does not make sense to me.

The only suggestion I can offer is to double check the code which initializes whatever determines the result of "movie.isPlaying()", and double check the openGL drawing code to make sure that you are drawing the correct things in the correct function -- i.e. the same things as in the SDL only versions of the code.

If you could maybe include a little more information about what is going on in your code here, for instance try describing in more detail with more exact language what occurs under which situations. I also encourage using fewer exclamation points and question marks (especially for statements that are not interrogative).

Wish I could help more,
-- Scott

---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html