Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

If I disable depth and stencil buffering, do I have to create and set the depth stencil buffer?

share|improve this question

1 Answer 1

up vote 4 down vote accepted

You do not, calling ID3D11DeviceContext::OMSetRenderTargets with the DepthStencilView parameter being a null pointer is perfectly valid, and you can still draw fine:

No Z-Buffer used

Obviously though, whatever you drew last will be drawn on top of everything else, regardless of its actual Z position - the colorful triangle in the image is behind the white one, but was drawn last.

share|improve this answer
    
great, I use the painters algorithm, so this is no problem. thanks! –  pivotnig Jan 25 '13 at 23:31

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.