Ambient Occlussion doesn't produce the same effect

Despite tinkering with Map Range node and mix nodes I just can't produce the same effect. It simply doesn't substract enough and grunge is visible everywhere: 

  • spikeyxxx replied

    Hi rrealmtraveler2014 you have forgotten to Clamp the Math > Add Node.

    Also be sure that you are using Cycles.

    1 love
  • adrian replied

    and make sure ambient occlusion is activated in the properties editor. 

  • realmtraveler2014 replied

    Thank you! It did help!

  • spikeyxxx replied

    @adrian2301 thank you ! I thought of that when I was outside...AO now works in Eevee, but is not enabled by default ;)

  • techworker1 replied

    I was tripped up by this too.

    The Math>Add node was not clamped at 5:19 in the video. At 5:37 (after a video transition) it is, but it is not mentioned in the narration.

    1 love
  • Roxana Moise-Dan(ox) replied

    Guys, I'm sorry, but I still don't understand why it's important to Clamp the value of the Math Node - Add (the one where the Musgrave Text is plugged in). I mean I can see what it's doing visually, but what's the explanation? (if I'm not asking fo too much)

  • Martin Bergwerf replied

    Hi Roxana ox ,

    No need to be sorry! I'll try to explain; first take a look at the output of the Musgrave with 1.18 added to it:

    Clamping_1.png

    The AO Node, after it's been piped through the clamped Map Range Node gives values between 0 (much occlusion) and 1 (no occlusion) and these values are being subtracted from above result. When you subtrat 0 nothing changes and when you subtract 1, it shifts down like this:

    Clamping_2.png

    And clamping the Subtract Node gives:

    Clamping_3.png

    If we clamp the Add Node we get (before subtracting the AO):

    Clamping_4.png

    If we now subtract 0 nothing happens and when we subtract 1 (no AO), we get:

    Clamping_5.png

    and then clamping the Subtract Node:

    Clamping_6.png

    Here's the file, so you can play with the different values and see what the result is:

    https://drive.google.com/file/d/1Zcgbzk0WqFW7B8nPLYWpedWqphxEvFz8/view?usp=sharing

    I hope this helps.

    3 loves
  • Roxana Moise-Dan(ox) replied
    Thank you for the complete explanation! This helped me envision everything and it all makes sense now. I will play around with the attached file to try things on my own. Thanks a bunch :D