Author Topic: Video instead of still frame on the stadium sample  (Read 3530 times)

Offline andersg

  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
on: January 14, 2009, 06:49:49 PM
Hey, I'm poking around the headtracking project, it's real impressive.

I'm trying to modify the feature where it displays a picture (of a stadium) onto a texture, instead of just a grid with targets in space, and you can go closer and further away from the picture, and sort of look to the left and the right in it.

So it basically just loads a png texture from file like this: backgroundtexture = TextureLoader.FromFile(device, backgroundFilename); using the TextureLoader class in Microsoft.DirectX.Direct3D.

Now what I want to do is display a video instead, that works in the same way.
I found out I need to use the Video.RenderToTexture method to render the video onto a texture, but I'm having trouble finding concrete examples of people who have done this simply in a way that demonstrates the principles of how to implement it.

Do you know anywhere I can find some tutorials that explain how this RenderToTexture method works?