RenderMovieFrame question?

Just starting out? Need help? Post your questions and find answers here.
Andy72
User
User
Posts: 11
Joined: Fri Jun 02, 2006 8:25 am
Location: New Zealand

RenderMovieFrame question?

Post by Andy72 »

Hi all!,
been a while (almost a year) since my last post, just a quick question, I want to display a sprite at 720x576 (Pal SD rez) and overlay a movie on it using RenderMovieFrame (the movie is also 720x576).
The movie is black with moving text at the bottom (textured text), what I want to see is my sprite image with the text moving over it, currently all I see is my movie and not my sprite, can this be done?

Heres what i wrote (I know not much use with out my files sorry)

Code: Select all


InitSprite()
If InitMovie() = 0 
  MessageRequester("Error", "Can't initialize movie playback !", 0) 
  End
EndIf

MovieName$ = "c:\images\text.mpg"

If MovieName$
  If LoadMovie(0, MovieName$)
  
    OpenWindow(0, 100, 150, 720, 576, "PureBasic - Movie")
    OpenWindowedScreen(WindowID(0), 0, 0, 720, 576,0,0,0)
    sprite=LoadSprite(0,"c:\images\blackboard.bmp")
    PlayMovie(0,#PB_Movie_Rendered)  
    Repeat
        RenderMovieFrame(0,SpriteID(0))
    DisplaySprite(0,0,0)
    FlipBuffers()
    Until WaitWindowEvent() = #PB_Event_CloseWindow
  Else
    MessageRequester("Error", "Can't load the movie...", 0)
  EndIf
EndIf 
I know its a mess but I just wanted an very simple example to improve on (plus this is just code copied out of the help files :wink: )
Andy72
User
User
Posts: 11
Joined: Fri Jun 02, 2006 8:25 am
Location: New Zealand

Post by Andy72 »

All good now, I'm using PNG's with transparency, works well now ;)
Post Reply