x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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.

Product Version: UE 4.18
Tags:
more ▼

asked Nov 09 '17 at 06:07 PM in Bug Reports

avatar image

Davision
930 98 139 195

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Hi Davision,

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).

SceneDepth

Regarding range settings, we actually try not to set limits unless hardware requires it.

scenedepth.png (50.8 kB)
more ▼

answered Nov 13 '17 at 10:35 PM

avatar image

Jon X ♦♦ STAFF
805 3 4 6

avatar image Davision Nov 13 '17 at 10:51 PM

Yea that is what I already did as a workaround now, making it with a post process material instead. It seems nobody ever tested all those scene capture settings. Writing only depth 0-1 in a texture hardly makes sense. The normal scene capture also makes no sense, it is normal -1 to 1 but the rendered texture is only 0-1. I also did a post process material for that instead.

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question