All Questions
Tagged with depth-buffer c#
5
questions
0
votes
1
answer
73
views
How to change layer depth according to player location?
I would like to change the layer depth of objects, so that the player can go behind them. Right now it looks like this when the player is behind the object:
The problem is that the layer depth doesn'...
0
votes
1
answer
335
views
XNA 4.0 How to change GraphicsDevice Default DepthStencilState Value
I want to change one of the deafult values of my GraphicsDevice to that:
GraphicsDevice.DepthStencilState.DepthBufferEnable = true;
But I know only to change it ...
0
votes
1
answer
171
views
Wrong distance in Depth-buffer
I am currently trying to get the Depth Buffer as a texture to use it for edge detection algorithms. Since XNA4 does not allow direct access to the Depth Buffer as texture i have to render it into a ...
2
votes
1
answer
610
views
My transparent objects overwrite opaque objects depth and always draw on top?
I have set up an 'Order Independent Transparency' method for drawing my transparent objects.
The algorithm can be simplified as follows:
DrawOpaqueObjects()
DrawTransparentObjects()
Drawing the ...
4
votes
1
answer
2k
views
Drawing a depth map properly
I want to render a depth map by importing it from a file, then creating an array of vertices and indices, and then displaying it using a basic shader (just apply the view and projection matrices on it ...