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"

What is the SceneTexture: SceneDepth node of postprocessing?

I want to know how the scene depth node works. Does this node returns the distance from opaque object to the camera center line ? (line passing through the center of camera)

Product Version: UE 4.17
Tags:
more ▼

asked Nov 01 '17 at 07:44 AM in Rendering

avatar image

mintchococookie
31 1

avatar image S.g.m.Klessens Dec 04 '18 at 02:11 PM

I've been trying to find the answer to this as well, and as far as I can tell it gives you the distance from a translucent material to the material behind it on a per pixel basis. (Calculated from the Camera to the pixel, to the pixel behind it).

But I am not sure, what I really want to know is what is the difference between the SceneDepth node and the SceneTexture:SceneDepth node?

avatar image Deathrey Dec 04 '18 at 05:59 PM

SceneDepth gives you depth of the scene behind current fragment. SceneTexture:SceneDepth allows you to sample scene depth at any point.

avatar image S.g.m.Klessens Feb 14 '19 at 09:10 AM

Thank you, it's clearer now, I do still have one question. You said that sceneTexture:SceneDepth allows you to sample scene depth at any point, however, SceneDepth also has a UV input, does it not allow you to change to location of the sample?

Or is the SceneTexture UV sample based on the screen position while the SceneDepth UV refers to another point on the object itself (based on it's uv's), or something like that?

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

0 answers: sort voted first
Be the first one to answer this question
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