Movie to texture

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
minimy
Enthusiast
Enthusiast
Posts: 601
Joined: Mon Jul 08, 2013 8:43 pm
Location: off world

Movie to texture

Post by minimy »

Will be nice to have an option to send a movie to texture.
I dont know if this is possible under PB but i see in ogre forum is working.
I think... :mrgreen:
If translation=Error: reply="Sorry, Im Spanish": Endif
User avatar
idle
Always Here
Always Here
Posts: 5870
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: Movie to texture

Post by idle »

used to do that with windows AVI onto GL textures
User avatar
minimy
Enthusiast
Enthusiast
Posts: 601
Joined: Mon Jul 08, 2013 8:43 pm
Location: off world

Re: Movie to texture

Post by minimy »

Hey idle, yes, long time ago was more easy, i remember darkbasic can play movies too.
But will be nice to have a native comand like MovieToTexture(movie,texture). :mrgreen:
Im using a triky for movies played over 3D WindowedScreen. Is not elegant solution but is what i got :wink:

1) In main window create a TextGadget(0..., fullscreen or any size. Can work with canvas or another one. (i think)
Later create WindowedScreen.
the movie is linked to the textgadget, some thing like: PlayMovie(0,GadgetId(0))

2) With PB6.21 this work nice.
In PB6.02 when play the movie i avoid in the main loop renderWorld and Flipbuffers, because cause flicker screen.

Is a bad solution but it work. :D
The problem is what this not work with OpenScreen for full screen mode.
If translation=Error: reply="Sorry, Im Spanish": Endif
miso
Enthusiast
Enthusiast
Posts: 459
Joined: Sat Oct 21, 2023 4:06 pm
Location: Hungary

Re: Movie to texture

Post by miso »

@minimy

How long videos are we talking about? With, or without audio?

Edit: Nevermind, sent you a PM ;)
User avatar
idle
Always Here
Always Here
Posts: 5870
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: Movie to texture

Post by idle »

Post Reply