Display Video on 3D cube

All your problems with Audio, Video and Images.

Display Video on 3D cube

Postby NHT » Wed Jul 21, 2010 4:05 pm

Hi all,

I intend to display video on a 3D cube (3D cube was drawn by OpenGL). I was successful in drawing a 3D cube by using OpenGL. However, when I put video on 3D cube, it does not work. As far as I know, if I display video on 3D cube, I must decode each frame of video and put it into 3D cube. Is there anyone knowing how to decode each frame of video? Or is there any other solution to display movie on a 3D cube? If yes, plz help me?

Thank you very much for your help!
NHT
Once Poster
Once Poster
 
Posts: 1
Joined: Wed Jul 21, 2010 3:48 pm

Top

Re: Display Video on 3D cube

Postby B_Thax » Wed Jul 21, 2010 9:03 pm

There is no general way to 'decode' video. It depends on the actual video format.

So once you are able to read a video file (theora for example) you just need to read each frame (normally you will not read the exact frame, you will read it acroding to the FPS rate running the app, there are also ways to merge frames so when you drop FPS the user will not notice it direclty) you need to remder that frame to a target which will be then displayed on your cube.

Here you'll find some help: http://www.google.es/search?sourceid=ch ... +to+target
Game Programmer at Tragnarion Studios - www.Tragnarion.com
User avatar
B_Thax
Junior Developer
Junior Developer
 
Posts: 13
Joined: Thu Jul 17, 2008 5:55 pm
Location: Palma de Mallorca

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: Exabot [Bot] and 15 guests