Scene Depth capture does not work
When using Capture Source: Scene Depth in a Scene Capture Component it is always just rendering plain red and nothing else, no matter what. It also appears someone forgot to add any range settings for it.
asked Nov 09 '17 at 06:07 PM in Bug Reports
First, what are you trying to accomplish with SceneDepth? SceneDepth returns the distance (in cm) from the camera. This is a scalar value (there is no X, Y, or Z element to depth) and anything farther away than 1 cm gets an R value of >1.
A number greater than 1, in terms of color, renders as white. When you send white in the R channel with 'SceneDepth in R' as the Capture Source (and Black in G and B since we aren't using them) the result is pure red.
It sounds like you are plugging your sceneTexture node into color, then setting it to SceneDepth, which will return bright red. You would want to mask out the result while also keeping in mind that Depth is a single number, not a vector.
As an example, here is a screen shot showing SceneDepth being used as intended. The 'MaxDepth' represents the distance from the camera that you expect depth to render as white (or return a value of 1.0).
Regarding range settings, we actually try not to set limits unless hardware requires it.
Follow this question
Once you sign in you will be able to subscribe for any updates here