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"

How to display Custom Depth as black&white only?

When getting custom depth view via SceneTexture:CustomDepth in post process material, the output multiplied by 0.0001 gives almost-black&white image. Almost, because the further from the CustomDepth object, the more it brightens up. Resulting in black&gray image. Is it possible to somehow filter it to always display 100% black and 100% white pixel values from this custom depth output?

Here's some additional explanation: alt text

On the left - CustomDepth output that I see when getting far from CustomDepth object. On the right - that's how I would like to see it, no matter how far from the object it is.

Update: When it is really far from an object, customdepth view of this object almost disappears... Something to ignore distance at custom depth would solve the problem...

Product Version: UE 4.10
Tags:
untitled-1.jpg (17.6 kB)
more ▼

asked Feb 04 '16 at 05:43 PM in Rendering

avatar image

Slavq
2k 157 153 208

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

I've found a solution: Use CustomDepth Stencil. Here is how to set it up - it doesn't fade out like regular CustomDepth: https://answers.unrealengine.com/questions/297880/customstencil-usage-in-pp-material.html

[Sadly it needs to be enabled in project settings first (and I'm preparing my tool for marketplace) but well, I'll just need to inform end user to enable CustomDepth Stencil in project settings]

more ▼

answered Feb 04 '16 at 08:16 PM

avatar image

Slavq
2k 157 153 208

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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