Community
Arnold General Rendering Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

AiShadowMatte workflow

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
zenop
1472 Views, 3 Replies

AiShadowMatte workflow

Hi guys,

I'm fooling around with the shadow catcher. The setup is simple. I've got some geometry which:

  1. Catches shadows
  2. Has the backplate projected so it serves as a reflection environment

I can do this easily with a rayswitch node, shadowmatte for primary rays and a surfaceshader for the other rays. Now, one thing isn't right yet. Shadows are cast from the objects, but they aren't there in the reflections.

So - is it possible to use the output of the shadowmatte in a shading network, so I can combine it with the backplate? I imagine this outputs a closure which can't be used?

I can get around this if I render out my shadow pass first and pipe it back into the shading network of the shadow catcher, but ideally wouldn't go this route. How is everyone else handling this?

Labels (3)
3 REPLIES 3
Message 2 of 4
zenop
in reply to: zenop

Answering my own question here to help everyone else with this.

I can pipe both the AiShadowMatte and the projection into the AiComposite shader. Then create an AiRayswitch and pipe the AiShadowMatte into the camera ray input, and the AiComposite node into all the other ray type inputs.

Practically what this does is combine the flat projection with the shadows, and then we replace the primary rays with the shadowcatcher again.

173-04-solution.png

Message 3 of 4
alexsomma
in reply to: zenop

@Zeno Pelgrims

This workflow still leaves a lot to be desired though. I've made some further tests with it, adding some nodes to your setup but still not getting the results one would hope for:

245-shadowmatteproblems-01.jpg

246-shadowmatteproblems-02.jpg

247-shadowmatteproblems-03.jpg

248-shadowmatteproblems-04.jpg

249-shadowmatteproblems-05.jpg

Beloved Solidangle, what is the correct workflow for getting physically plausible results?

Cheers,

Alex

Message 4 of 4
richard
in reply to: zenop

I have been trying to achieve what Alex tried here but without any luck. I have a different lighting setup but I can't get the reflections to look right. Does anyone have att better solution for the reflections?

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report