unity3d-jp / FrameCapturer

export framebuffer, GBuffer or any RenderTextures from Unity to file. supported format: png, exr, gif, webm, mp4
MIT License
1.04k stars 165 forks source link

No Depth Map in custom scene #51

Closed Alby90 closed 4 years ago

Alby90 commented 4 years ago

I try to record the Depth map of a custom scene but the image is completly white when in the Test Scene everithings is recorded well. I set the camera with the same settings as the test Scene one (Deferred etc.) but this pass is always white. Seems like the Depth is not normalized and so you must be very close to a subject to effectively see the depth data. There is something to tweak?

Alby90 commented 4 years ago

Closed. I found that the clipping plane must be set as the Far clipping plane is white and the Near is black and the result is not automatically normalized.