DevceDepth in RGB as capture source

Hello,

I’ve got a Capture2DComponent set to capture a scene with the DevceDepth in RGB as capture source.

Based on the explanation herre: https://answers.unrealengine.com/questions/708727/what-does-devicedepth-option-under-scenecapturecom.html

I’ve calculated the value of each pixel [0-1].

I Can’t understand how to translate the scalar value from the fraction (between 0 and 1 ) to a real world distance.

I figured that this number will represent the relative distance between near and far clipping, but I can’t get any info regarding the far clipping.

Can anyone help?

Thank you.

Search the code for:


ConvertFromDeviceZ

It will give you all clues you need.