Ambient Occlusion Node
Access: Nodes > Geometry > Ambient Occlusion
The Ambient Occlusion (AO) node uses the object in your scene to create a black and white texture that represents the occlusion on your object. Crevices are filled with a dark shadow using black or gray, and open, smooth surfaces are white. Ambient occlusion is great for making your textures appear more realistic.
Baking the Ambient Occlusion
|1.||Open the Objects menu and click Ambient Occlusion.|
|2.||Wait for the Ambient Occlusion to calculate.|
You can monitor the progress in the bottom right corner of the application window.
|3.||Add an Ambient Occlusion node to your node graph by right-clicking and selecting Nodes > Geometry > Ambient Occlusion.|
|4.||Connect the Ambient Occlusion node output to either the Ambient Occlusion channel on your BRDF shader, or directly into the Viewer.|
The calculated Ambient Occlusion appears on your object in the viewer.
Note: If any changes are applied to your object, you need to re-calculate the ambient occlusion.
Ambient Occlusion Node Workflow Example
Example - Combining Ambient Occlusion with Maps
Using an Ambient Occlusion node allows you to produce a quick mask for crevices or areas where dirt, grime, or dust would naturally build up. Then, a Levels node helps you to add contrast and darken the black areas of the ambient occlusion. You can use an Ambient Occlusion node as the base for Specular Roughness as those areas are often rougher due to grime build up, or at the end just to add some variation to the map.
After baking the ambient occlusion and placing down an Ambient Occlusion node, you need an Invert node to invert the black and white values of your map so you can make use of a Levels node. Specular roughness uses white as rougher and black as tighter. You can add a Levels node so that you have a bit more control over how much or how little the ambient occlusion affects your textures.
The Invert node flips the ambient occlusion so it works with your specular roughness values. The white values become black, and the black values become white. You can then use a Levels node to make the ambient occlusion darker or lighter, pushing or lessening the effect it has when merged. The blend mode when merging is Add.
A Merge node is needed to combine the ambient occlusion with the specular roughness. As you want to use the ambient occlusion to add roughness, then the blend mode of Add adds the inverted white from your Ambient Occlusion node.
Experiment with the Merge node’s opacity to choose how much you want the ambient occlusion to affect your final specular roughness. Using ambient occlusion can help make your textures look more realistic. The node can be used elsewhere, such as in the base color to dirty your base color up, or in a metallic channel to add metallic wear.
In the image, the crevices of the mesh are lighter in the specular roughness, which creates a dirty and dusty look.