3
votes
1answer
640 views

Write depth buffer to texture

I need to read depth buffer from GPU and write it to texture. How this can be done? Here is how texture for depth buffer is created: depthBufferDesc.Width = screenWidth; depthBufferDesc.Height = ...
2
votes
1answer
162 views

Multiple passes in direct3d10

I begin to learning direct3d10 and stuck with multiple passes. As input I have a triangle(that stored in vb/ib) and effect file: //some vertex shader and globals goes there. skip them to preserve ...
0
votes
1answer
162 views

rendering issue: depth buffering + blending: how do they work together?

This image describes the problem I'm having: http://i42.tinypic.com/282kzlf.jpg What you are seeing consists of two images: Image A(with the alien-concept art thingy), depth value .98, the white ...