|
From: James W. W. <ja...@fr...> - 2006-02-24 18:59:40
|
Daniele Cavallini <dca...@in...> wrote: >Is "Background Test" an examples for display a quesa render with a >image in Background? That appears to be true. >It is possible compile it under windows? No, it uses Mac-specific techniques. Also, it uses offscreen rendering, and the software renderer on Windows is pretty bad, so you wouldn't want to do it that way. To render with an image in the background, the key ideas would be: 1. Use Q3DrawContext_SetClearImageMethod with the value kQ3ClearMethodNone. 2. At the beginning of the rendering loop, draw the background. I've never done this, but one approach might be to call Q3Push_Submit, Q3RasterizeCameraTransform_Submit, submit a textured polygon, Q3Pop_Submit. The Geom Test sample has an example of using a rasterize transform. In that example, the rasterized polygon appears in front of the normal 3D content. However, if you remove the transparency attribute, and change the z coordinates of the polygon vertices to 0.999f, then the polygon will be behind. -- James W. Walker, Innoventive Software LLC <http://www.frameforge3d.com/> |