Ambient Occlusion pass in the same .EXR

   3105   8   3
User Avatar
Member
29 posts
Joined: Nov. 2021
Offline
Hi,

How do I get Karma to render a Beauty pass and an Ambient Occlusion pass in the same .EXR ?

Any tutorials on this?

Thanks.
User Avatar
Staff
593 posts
Joined: June 2020
Offline
Here's an approach to setting up a material that will export ambient occlusion data alongside the beauty.

Attachments:
ao.hip (623.9 KB)

User Avatar
Member
29 posts
Joined: Nov. 2021
Offline
robp_sidefx
Here's an approach to setting up a material that will export ambient occlusion data alongside the beauty.

Awesome.
Thanks!
User Avatar
Member
8177 posts
Joined: Sept. 2011
Offline
robp_sidefx
Here's an approach to setting up a material that will export ambient occlusion data alongside the beauty.

The ao should be plugged into the fg since the mix is at 0, because that's definitely affecting the beauty.
User Avatar
Member
29 posts
Joined: Nov. 2021
Offline
jsmack
robp_sidefx
Here's an approach to setting up a material that will export ambient occlusion data alongside the beauty.

The ao should be plugged into the fg since the mix is at 0, because that's definitely affecting the beauty.

How is that done?
Thanks!
User Avatar
Member
8177 posts
Joined: Sept. 2011
Offline
alunablue
jsmack
robp_sidefx
Here's an approach to setting up a material that will export ambient occlusion data alongside the beauty.

The ao should be plugged into the fg since the mix is at 0, because that's definitely affecting the beauty.

How is that done?
Thanks!

I modified rob's file to show

Attachments:
ao_mod.hip (624.3 KB)

User Avatar
Staff
593 posts
Joined: June 2020
Offline
Whoops ... thanks Jon, yes I screwed up the Mix node settings in the original reply. Alternatively leave it plugged into BG and set Mix to 1.
User Avatar
Member
8177 posts
Joined: Sept. 2011
Offline
robp_sidefx
Whoops ... thanks Jon, yes I screwed up the Mix node settings in the original reply. Alternatively leave it plugged into BG and set Mix to 1.

That always gets me too. The order of the inputs of the mtlx mix node is confusing. It's inconsistent with the Houdini mix node/lerp function since it puts fg first.
User Avatar
Member
29 posts
Joined: Nov. 2021
Offline
Thank you both very much.
  • Quick Links