New answers tagged depth-buffer
Make sure you request a depth buffer from LWJGL by passing a PixelFormat to your call of Display.create. Like so: Display.create(new PixelFormat(4,24,0,4)); The 24 indicates a 24 bit depth buffer.
Change depthStencilDesc.DepthFunc = D3D11_COMPARISON_LESS; to depthStencilDesc.DepthFunc = D3D11_COMPARISON_ALWAYS;
1: camera space, like Andon said. 2: the projection matrix contains those Fx,Fy values (f and f/aspect) at cells  and  see https://www.opengl.org/sdk/docs/man2/xhtml/gluPerspective.xml 2x/Vx-1.0 is to convert from screen pixel coordinates which are from (0, 0) to (WIDTH, HEIGHT) to 3D projected coordinates that are from -1 to 1. 3: the "real" ...
There are two main ways to do this. First way is to do exactly what you're trying to avoid doing, and use a render target. This is the way used by the Shadow Mapping sample for D3D9 in the old DirectX SDK, although it needn't be 32-bit (D3DFMT_R16F may well be sufficient). As a possible optimization you could use a NULL depth/stencil target, enable ...
Top 50 recent answers are included