Archived

This topic is now archived and is closed to further replies.

AndyM

3D icons over 3d scene

Recommended Posts

After drawing the main view of a game, I then need to draw 3D icons, meshes etc on top of that main view. I need to use Z-buffering for drawing these overlays. I don't think I can just add these to my scene, at least without clearing the z-buffer, as they could intersect with the main scene! I'm not sure I can render to a texture as I need z-buffer support. I can use a 2nd render target, but how to then overlay (with transparent areas around objects) this onto the main view. Anyone done this kind of thing before? thanx Andy [edited by - andym on May 27, 2004 10:44:52 AM]

Share this post


Link to post
Share on other sites
Just clear the ZBuffer, or Device.Clear(ClearFlags.ZBuffer,0,1,0). That''s C#. C++ can''t be that much different. Just have it draw your background, and then clear the zbuffer and then draw your icons

Share this post


Link to post
Share on other sites