Values not adding up correctly

Node-based Shader Editor

Values not adding up correctly

Postby teidenzero » Fri Nov 09, 2018 8:57 pm

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.76 KiB) Viewed 992 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.78 KiB) Viewed 992 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 (52.01 KiB) Viewed 992 times


What am I doing wrong?
teidenzero
 
Posts: 3
Joined: Wed Jul 11, 2018 10:54 pm

Re: Values not adding up correctly

Postby naitoookami » Sun Nov 11, 2018 5:41 pm

Use a saturate node this will clamp the values of the noise between 0-1
naitoookami
 
Posts: 17
Joined: Tue Oct 02, 2018 5:24 pm

Re: Values not adding up correctly

Postby Amplify_Borba » Mon Nov 12, 2018 3:28 pm

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!
User avatar
Amplify_Borba
 
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am


Return to Amplify Shader Editor

Who is online

Users browsing this forum: No registered users and 36 guests

cron