Upcoming Events
Unite 2010
11/10 - 11/12 @ Montréal, Canada

GDC China
12/5 - 12/7 @ Shanghai, China

Asia Game Show 2010
12/24 - 12/27  

GDC 2011
2/28 - 3/4 @ San Francisco, CA

More events...
Quick Stats
96 people currently visiting GDNet.
2406 articles in the reference section.

Help us fight cancer!
Join SETI Team GDNet!
Link to us Events 4 Gamers
Intel sponsors gamedev.net search:

Contents
 Introduction
 Files
 Streams
 Processing
 Cleaning Up

 Printable version
 Discuss this article
 in the forums


Conclusion

Did you skip the document just to get to the samples?

How can you have any pudding if you haven’t finished your meat?

- Pink Floyd, “The Wall”

* Sample One

The first sample plays an AVI file that was made by Klowner. This sample uses my CDirectDraw wrapper class to do the rendering. The file is first played forwards, and then played in reverse so the action is seamless. It’s time synchronized so the visual frame rate is consistent with the frame rate specified by Klowner when he made the file. Each frame is also blitted with transparency, so the sequence can be superimposed over a backdrop during a game’s action.

* Sample Two, featuring the PowerRender API

The second sample shows a rotating teapot superimposed over the AVI file’s action. It may look like the teapot is being stretched, skewed and zooming in and out, but I used PR’s camera features namely field of view and aspect ratio to optimize those effects. This sample requires a hardware accelerator compatible with Microsoft’s Direct3D in order to operate, but should be compatible with OpenGL, GLIDE, or software rendering depending on what you recompile it for. If you want more information on the professional PowerRender api, here’s their site: Egerter software.

à[Get the Samples Now!!]ß

à[Visit my Web Site!!]ß

©1999 Jonathan Nix. All Rights Reserved.

All sample code is subject the most current copyrights and/or disclaimers posted on my website.

PowerRender is a trademark of Egerter Software.

Direct3D and Microsoft are trademarks of Microsoft Coorporation.