View Full Version : video as texture on cube
02-20-2013, 01:03 PM
I know how to map an image to a cube.
But, how can I map a video (ogg, ogv, etc.) to a cube.
What are the differences to map a picture?
There are other functions?
02-20-2013, 02:38 PM
The main complications of using a video stream for texture mapping are that the format of the image data must be converted from YCrCb to RGB color space and the timing of
the texture loads must be carefully synchronized to the source of the video frames.
This is easier to do on some embedded platforms (such as Android) than others. Typically, shader programs are used to perform the color space conversion and several EGL Image extensions are required, which are introduced here:
http://software.intel.com/en-us/article ... cy-2d-guis (http://software.intel.com/en-us/articles/using-opengl-es-to-accelerate-apps-with-legacy-2d-guis)
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.