SceneCapture Depth as Texture

anonymous_user_c3e69a5a
Thu, 20 Sep 2018 13:39:58 +0000
Asset Creation

Hi, I want to get a depth map from a specific view. And I want it as texture because I want to be able to access the data in C++.

So I did the following setup. I placed a SceneCapture2D in the view I want. In the rendering settings it should render the scene into rgb and the depht into a-channel of a rendertarget:

When It take a look at the render target, the rgb channels are good:

but the alpha channel does not contain any depth map - it´s just white:

Am I doing something wrong? Or is there another way to do this?
Thanks in advance!

5 posts - 3 participants