A setup to render Ambient Occlusion from Geo to deep format, able to set non-renderable objects.
RayDeepAO
Updated: 6 January 2020
Author: xmjtx
Compatible Nuke versions: 10.0 or later
Compatibility: Linux, Mac, Windows
I have this setup while creating Deep2VP's demo and would like to share. A setup to render Ambient Occlusion from Geo to deep format, able to set non-renderable objects.
inputs :
cam
connect with camera node
bg
define the output resolution
msc
stand for 'main scene', which is the pirmary geo(s) to render AO. Input can be a single geo or a scene node connected to multiple geos.
ssc
stand for 'sub scene', which is setup non-renderable geo(s) but they interact with the pirmary geo(s). Input can be a single geo or a scene node connected to multiple geos.
msc_tex
stand for 'main scene texture'. This input will be use when 'use texture' checked. texture required in UV space.
output :
Output is in deep format. If output vector is checked, position and normal data is also in deep format.
example :
This is a basic setup
Create all in layers, so the main scene can interact with other geos but not holdout by them.
layers
DeepMerge layers