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. ©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. |