Hereâ€™s a sample on how to use the new support for video files in XNA Game Studio 3.1.
All you have to do is add the video file (wmv) to your Content project, and youâ€™re ready to use it with a few lines of code.
The sample loads a video containing a montage of XNA games, released some while ago. After loading it, you can view it in 4 ways (use spacebar/gamepad A to change):
- using a post-processing shader (reusing some code from Dark Codexâ€™s tutorials)
- on a rotating sphere object
Hereâ€™s some screenshots:
And hereâ€™s the sample: VideoSample.zip
P.S. If a video file you have doesnâ€™t work from the first try, try re-encoding it with Windows Movie Maker.
Pingback: Catalin’s XNA Experiments » New Sample: XNA GS 3.1 Video Support
Pingback: Primeros ejemplos de reproducciÃ³n de video en XNA 3.1 « Aprendiendo XNA
Pingback: Catalin’s XNA Experiments » Re-awarded XNA/DirectX MVP for 2010