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"

Getting the Outline (Dark) colors of a Texture?


Thank you for coming! Have a seat! I just have a small question! Imagine you have a texture. ıt got white, black, and dark grey. You are lacking a mask material so that is out of option. But, how would you get the black part only then? What kind of "If" would you use, or use at all?

Here is a pic of what I am trying to do;

alt text

I need a way to reach this guy's bodies' outlines, which are the darkest parts to light them up. How would you do that?

Thank you for your time!

Product Version: UE 4.10
capture.png (485.1 kB)
more ▼

asked Dec 04 '15 at 07:59 PM in Rendering

avatar image

787 38 34 70

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

1 answer: sort voted first

You'll need to use Clamp then. If black is 0 and white is 1 then you'll need to clamp the texture between 0.2 and 0.5(roughly.)

more ▼

answered Dec 04 '15 at 08:02 PM

avatar image

16.8k 671 167 676

avatar image Achilleon Dec 05 '15 at 03:45 AM

Mr Jacky, thank you for helping. I used Clamp it kinda works, but.. how to seperate the black colors so I only have an outlining?

Is there any chance that you can demonstrate how to keep only black parts of this simple picture?

alt text

The only problem left for me is how to mask the white part. ^_^

Thank you for your or anyone's help incase someone else can teach me too!

avatar image Jacky Dec 05 '15 at 03:41 PM

You need to use a Lerp, and use your texture as the Alpha of that Lerp.

(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