Jump to content
  • Advertisement
Sign in to follow this  
mososky

Render without Depth Buffer?

This topic is 3050 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

How can I setup the render state so that When I do a draw call I'm not writting anything into the Depth buffer, or comparing the draw pixels to anything currently in the depth buffer (so that they always are drawn). Thanks, Matthew

Share this post


Link to post
Share on other sites
Advertisement
Assuming C++ and DX9 just do:

device->SetRenderState(D3DRS_ZENABLE, 0);
device->SetRenderState(D3DRS_ZWRITEENABLE, 0);

Share this post


Link to post
Share on other sites
device->OMSetRenderTargets(1,&yourRenderTarget,NULL);

Just make sure you set the third param (depth stencil view) to NULL and you're done

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!