Values not adding up correctly

Node-based Shader Editor
Post Reply
teidenzero
Posts: 3
Joined: Wed Jul 11, 2018 10:54 pm

Values not adding up correctly

Post by teidenzero »

Hello, I'm having an issue with the noise generator:

when I generate the noise (supposedly with values between 0 and 1) and I add it to a color, I still get black patches.
Amplify_01.JPG
Amplify_01.JPG (62.57 KiB) Viewed 1616 times
Since the black is supposedly 0, this shouldn't happen.
I generated some 0 to 1 noise in Nuke and tested the same thing and this time I was getting the expected result.
Amplify_02.JPG
Amplify_02.JPG (58.6 KiB) Viewed 1616 times
I assumed then that the generator must be generating negative values, so I used the old trick of elevating to the power of two in order to make any negative number positive, and then pull the square root to get the values back to their original range, but even this isn't working.
Amplify_03.JPG
Amplify_03.JPG (51.91 KiB) Viewed 1616 times
What am I doing wrong?
naitoookami
Posts: 17
Joined: Tue Oct 02, 2018 5:24 pm

Re: Values not adding up correctly

Post by naitoookami »

Use a saturate node this will clamp the values of the noise between 0-1
User avatar
Amplify_Borba
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am

Re: Values not adding up correctly

Post by Amplify_Borba »

Hello, as naitoookami kindly pointed out, you'll need to clamp the output of the Noise Generator node to a range of 0-1 by using either the Clamp or the Saturate nodes, otherwise it'll provide negative values, which is expected behavior.
Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
Post Reply