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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Easiest (best) way to define different roughness witha color map?

Beginner question. So I have diffuse color map (mask) and depending on the color I want different roughness or metalic value etc. I saw the docs about layered metarials and material functions, but I wonder if there is an other way since i don't want completely different materials, but just some difference.

2nd question: (I might make a new question for it if doesn't get answered here) i wonder If there is a way to define materials with a color map(mask) where I don't just use the absolute values of the different RGB channels, but have colors like pink, orange, light and dark green etc and I could use the different colors as different masks. Sry If my explanation is not the best.


Product Version: Not Selected
more ▼

asked May 28 '14 at 08:39 PM in Rendering

avatar image

5 1 2 4

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

1 answer: sort voted first

Hi mzprox -

Beginner Answer - Assuming that your color map has no overlapping map sections, you could use IF statements added together to define the values of roughness and metallic, so for those settings it would be 6 IF comparisons, 3 added together for Roughness and 3 added together for Metallic. (Info on If is **here**.)

2nd Answer - This question sort of has the same answer. Again, Assuming that you are dealing with "pure," no dither or anti-aliasing or overlapping colors in that map, you could compare your map to a Constant 3 value assigned to that color in an IF statement to get a result. This is not perfect as a texture that is not saved as Alpha-unmatted will have edge errors in this method.

Thank You -

Eric Ketchum

more ▼

answered May 28 '14 at 09:13 PM

avatar image

Lovecraft_K ♦♦ STAFF
36.7k 702 260 735

avatar image mzprox May 28 '14 at 09:20 PM

it answers my first question, thanks. About the 2nd I1m not sure, but if i had to use IF comparsions it would be quite complicated.

(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