Can a video file be implemented in render to texture?

DOGMA1138

Regular
can a video file, lets say an avi or mpg be rendered in to texture?

please move this to 3D Architecture and Coding.
thank you and sorry for the trouble.
 
Yes, video files can be displayed as textures. In fact, there are a few applications out there that will allow you to edit video and put 3D effects on to it - this is achieved by effectively mapping the video on to a texture and then processing through the shader pipeline to add effects.

Technically, this could be done in a game, but its probably still fairly costly.
 
ok, so what did they use in DooM3 in the "TV broadcastings" and Video comms during the game? did they rendered a full 3D scene it to the texture of the monitor?
 
Although this link is not about ROQ files, you might find it interesting:

This tutorial will teach you how to play AVI files in OpenGL. Play them fullscreen, in a window, on the side of a cube, sphere, cylinder, etc. Create a billboard with full motion video playing on it! The tutorial also shows you how to use sphere mapping to create a cool looking live environment mapping effect.

Link
 
DaveBaumann said:
Yes, video files can be displayed as textures. In fact, there are a few applications out there that will allow you to edit video and put 3D effects on to it - this is achieved by effectively mapping the video on to a texture and then processing through the shader pipeline to add effects.

Technically, this could be done in a game, but its probably still fairly costly.

Name one?
 
At least emulators and media player classic take advantage of 3D rendering to display their content.
 
Para said:
DaveBaumann said:
Yes, video files can be displayed as textures. In fact, there are a few applications out there that will allow you to edit video and put 3D effects on to it - this is achieved by effectively mapping the video on to a texture and then processing through the shader pipeline to add effects.

Technically, this could be done in a game, but its probably still fairly costly.

Name one?

Serious Magic Visual Communicator is a fairly high end one. NVIDIA have some basic software, IIRC, as I remember them demonstrating nForce2 with some basic live 3D mapped video effects (they had a camera connected to the nForce system with it displaying on screen and you could interact with the displayed image by doing thing such as "smash" the pane, or this). Heck, anyone that has an NVIDIA board can do it by enabling NVIDIA Keystone and play a video - all Keystone does is render the desktop on to a texture and then maps that to a geometry mesh; if you have a video playing on your desktop whilst Keystone is enabled then you are mapping then the direct draw feed from the video will get mapped to the the texture.
 
The dx sdk has examples of this, but it seems to synch the fps of the vid with the fps of the game.

The older c++ examples using direct draw don't have this problem but DD is not fun to use and has been depriciated by m$. Rumor is something new is on the way.
 
Back
Top