A little blinkscript I made a while ago that makes an occlusion and curvature based on Nworld and Pworld.
AOfromNandP
Updated: 15 December 2023
Author: Plemouss
Compatible Nuke versions: 12.0 or later
Compatibility:
A little blinkscript I made a while ago that makes an occlusion and curvature based on Nworld and Pworld AOVs.
It samples a huge area around each pixel to generate the effect. Make sure the evaluation box is the minimum possible.
The larger is the distance of the occlusion the larger you need to have the evaluation box.
It works better if the AOV is aliased of course... you can always clean edges with a median if needed.
Hoping this helps ! You can open the blink look how it works and edit it !