Sponsors of Wiimoteproject.com
IR Pens for Wiimote Whiteboard
Wiimote Project » Forum » Wiimote Projects » Wiimote Desktop VR/Head Tracking » Video instead of still frame on the stadium sample
Pages: [1]
  Print  
Author Topic: Video instead of still frame on the stadium sample  (Read 659 times)
0 Members and 1 Guest are viewing this topic.
*
Karma: +0/-0
Posts: 1
Offline Offline
View Profile Email
« on: January 14, 2009, 07: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?
Logged
Pages: [1]
  Print  
 
Jump to:  

TinyPortal v.1.0.6 beta 2 © Bloc
Clicky Web Analytics