rate up
0
rate down
a single question about depth view
Hi!here is my question. I set the vertex array like this: {-0.5f, -0.5f, 1.1f, -0.5f, 0.5f, 1.1f, 0.5f, 0.5f, 1.1f, 0.5f, -0.5f, 1.1f.} In this array,i set the z component to 1.1f. then i set viewport.MaxDepth=1.1f,also,i write this.d3d11DevCon->ClearDepthStencilView(depthStencilView, D3D11_CLEAR_DEPTH|D3D11_CLEAR_STENCIL, 1.1f, 0); But when i done this anything,i run the program,but i got nothing on win32,only black background.i urgently wonder know why,Thanks!
Chosen Answer
rate up
0
rate down
Usualy, there is a range from 0.0 to 1.0 and it should be not changed. From my expierience I know that when you want to make it a 3D stuff you should make a "Camera". Depth should stay at 1.0f. For funnier stuff the same effect you will get with DX12 or OpenGL
Sign in to answer!