Author Topic: Control levels out based on color input?  (Read 538 times)

Hi all,

I'm having a hard time figuring out how to control a value in the levels node based on a color output from a color solid.

Basically I'm blending a color solid and a noise together then plugging that into the diffuse. What I'd like to have happen is that as the color value increases the levels out low also increases. The intent being that if I push white through, the influence from the noise becomes minimal.

Currently I have the color going into a pixel processor. Inside the pixel processor I am sampling the rgb values then averaging them to get the overall value. Ideally I would just plug this into the levels out low but I can't figure out how to get that to link.

I feel like I'm probably going about this all wrong so any help would be much appreciated!

Thanks!

Hmm...  Trying to picture what you're saying...  I might have an idea...

Insert a Blend node with your noise as the Background and the color as the Foreground, and then the Blending Mode to "Subtract."  A white color would totally subtract all the noise, while a black color would subtract nothing.  Then this "modified noise" can be plugged into the rest of your graph.




P.S.
Strange things, I noticed a small typo, where I had typed "Substract" rather than "Substract."  Thn I happened to scroll down on this documentation page, and see Allegorithmic also spelled it that way.
https://support.allegorithmic.com/documentation/display/SDDOC/Blending+modes+description
I wonder how it's actually spelled in Substance Designer.  I will have to look more closely when I get home.

P.P.S.
This, from Google:
Quote
"Subtract" is the word. Though the obsolete word "substract" did exist, any occurrence you see these days is most likely just a common mistake, formed by analogy either with "abstract" or with other languages whose corresponding words do have two 's's. Many recent dictionaries do not list "substract".

errors - Is "substract" (versus "subtract") a proper word? - English ...
https://english.stackexchange.com/q/3640
"
Last Edit: June 22, 2018, 07:17:58 pm
Hobbyist
----------
Common "Help" suggestions:
- LOG FILE tips - https://forum.allegorithmic.com/index.php/topic,22451.0.html
- LICENSING issues https://www.allegorithmic.com/contact
- ATTACH files and pictures to posts: https://forum.allegorithmic.com/index.php/topic,23670.0.html

Saying Substract might be a side effect of being a Substance user... We type "subst" so much that trying to type the first four letters makes our brain fill in the fifth.

But on to the question... If you want to make sure an input of white noise never gets darker then an input image (levels out low style) then it sounds to me like you want to blend the input image and the noise, making sure the blending mode is set to "Screen".
You could reproduce these sorts of calculations inside Pixel Processor without too much trouble, if there's something slightly different you had in mind (like, maybe, making the input image ligher AND darker, but more subtly if the input image is lighter in color), but it sounds like screen will cover your needs

you might want to look at the save add on substance share to take some inspiration: https://share.allegorithmic.com/libraries/78