Using Video as Textures

Another common feature for video files that users must have is the capability to play these movies onto a 3D texture inside the application they are building. Many of the developers use movie files as the “cut-scenes” during their game, and need some way to show the movie in full screen mode. The Audio Video playback classes can handle both cases quite well.

For the simplest case of a developer wanting to use a full screen movie as a cut-scene in the game they are writing, we made it as simple as could be. Simply load the video file into your Video object, set the “Fullscreen” property to true, and play the video. Nothing could be simpler…well, unless there was a constructor that took these parameters.

For the more difficult ...

Get Managed DirectX® 9 Kick Start: Graphics and Game Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.