We are using UE4.16 for a science project and need to extract sceneDepth, however it seems sceneDepth exhibits some vignetting on the edges of the screen.
I've reproduced this problem in a clean project based on the Flying template. The only modifications I made are: - I created a post process material as shown in the screenshot - I applied this material to a Post Process Volume.
Then I've positioned a camera facing a wall perpendicularly, created a screenshot and then rotated it (without any translational) movement and made another screenshot. The distance between the camera and any point on the wall should, therefore, be the same in both screenshots.
Real render of the screen (for representation):
However, I've measured the color values of the same spot on the wall and they are quite different. As my depth material is from white to black (with white meaning close and black meaning far), the color of the same spot is much darker when it's at the edge of the screen.
To make this problem more apparent I imported the screenshots to Photoshop and increased contrast.
Can anyone please confirm this is the case with sceneDepth node and any possible solution?
asked Jan 11 '18 at 07:23 AM in Rendering
Scene depth is not a distance between camera and pixel. It is Z axis coordinate of the pixel in view space. Thus, what you are describing is correct behavior.
answered Jan 11 '18 at 10:32 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here