Page 1 of 1

Values not adding up correctly

PostPosted: Fri Nov 09, 2018 8:57 pm
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.76 KiB) Viewed 685 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 685 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 685 times


What am I doing wrong?

Re: Values not adding up correctly

PostPosted: Sun Nov 11, 2018 5:41 pm
by naitoookami
Use a saturate node this will clamp the values of the noise between 0-1

Re: Values not adding up correctly

PostPosted: Mon Nov 12, 2018 3:28 pm
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.