Hello Everyone,
I am working on creating high-quality depth maps for a scene, aiming for precision and detail. However, I am encountering artefacts on some meshes when the bounding limits of the scene are very large.
- Here are the artefacts (note the lines on the front face of the cube):
I have attempted several approaches to resolve this issue:
-
Optimising MinZ/MaxZ
-
Using Logarithmic Depth Map
-
Using Dithering & Blur
-
Using Coloured DepthMaps
Despite these efforts, I have not been able to significantly reduce the line artefacts.
I also noticed that these artefacts appear on faces that are close to perpendicular (but not exactly 90 degrees) to the camera’s view direction. I suspect this may be due to the lack of shading on those faces. Here is a diagram to illustrate the issue:
Here is the Playground that renders all the varieties of depth maps:
(Check all the depth textures in debugger)
Is there a way to remove or mitigate these artifacts through any of the following methods, or a combination of them?
- Depth map format
- Optimizing MinZ/MaxZ
- Post-processing techniques
- Any other approach
Thank you for your assistance!