Sign in to follow this  
r_bewick

Directx 9 c++ Drawing 3d in front of 2d

Recommended Posts

Hi I have no idea how to draw 3d stuff in front of 2d sprites and textured squares. I tried putting the 2d stuff's z value further back but they don't draw. for example, I load a texture onto a 2d square and draw it over the whole screen. Then I try draw a mesh or something and it doesn't show up. How can I choose to draw 3d in front of 2D? thanks, r_bewick

Share this post


Link to post
Share on other sites
Try disabling z-writes while drawing the 2D stuff. If this is not an option you could always clear the z-buffer before you draw the 3D stuff.
I guess that could to the trick.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this