All Questions
Tagged with depth-buffer c++
10
questions
0
votes
1
answer
3k
views
Howto use the depth buffer in DirectX 12
To make things short: I am trying to bind and use a depth buffer in D3D12, but it is not working. The depth buffer gets created and bound properly (I can see it in nsight graphics) but does only take ...
1
vote
1
answer
1k
views
glReadPixels with GL_DEPTH_COMPONENT into PBO is slow
I need to read depth buffer back to cpu memory. It may be few frames old, so I use glReadPixels with a buffer bound to GL_PIXEL_PACK_BUFFER. I use several buffers and ping-pong them. Finally, I read ...
3
votes
0
answers
363
views
Reading depth buffer result in only two values
I am attempting to add an SSAO post processing shader to my deferred rendering engine. I am running into problems with reading from the depth buffer. In the images linked below you can see the depth ...
1
vote
1
answer
1k
views
How to enable depth test with QOpenGLWidget? It renders black screen
Currently I am writing a small application with Qt and OpenGl and I choosed QOpenGLWidget for rendering graphics.
That's how I declared my widget:
...
3
votes
1
answer
8k
views
Creating polygons with separate outline/fill colors in OpenGL
Subject
I am creating a terrain map with triangle strips and I would like to make the bodies of the triangles black, but have their outlines be colored.
Problem
The solution appears to be to draw ...
0
votes
1
answer
168
views
DepthStencilView and alphaBlendState
I have create a 2D game with directx11 and i want to use a depth buffer instead of a painter's algorithm to draw the sprites but i have a problem since i'm not really good with directx 3d programming.
...
1
vote
1
answer
989
views
Changing the maxDepth of viewport
Whenever I change the maxDepth of the viewport from 1.0 to say ...
1
vote
1
answer
2k
views
Why does switching to fullscreen produce this graphical glitch?
I followed this tutorial and things were looking good. However, when switching to Fullscreen from 800x600 using alt-enter, I noticed an error in debug output:
...
0
votes
1
answer
2k
views
Creating a 2D texture array for depth view
Following my question here, I decided to create an 2D texture array for all of my depth screen texture so that I can use them for shadows for all my lights.
I'm having an issue setting it up, I'm ...
1
vote
1
answer
2k
views
Why are my scene's depth values not being written to my DepthStencilView?
I'm rendering to a depth map in order to use it as a shader resource view, but when I sample the depth map in my shader, the red component has a value of 1 while all other channels have a value of 0.
...