Shadow/matte material

Shadow/matte material

Anonymous
Not applicable
4,837 Views
10 Replies
Message 1 of 11

Shadow/matte material

Anonymous
Not applicable

With Mental Ray I could use a ground plane assigned with a matte/shadow material to render shadows under the model. I could save as a .png with transparency on and the HDRI would disappear from the background leaving the shadows coloured black. With Arnold the shadows aren't black, they are the same colour as the HDRI background. How can I make them black?

0 Likes
Accepted solutions (1)
4,838 Views
10 Replies
Replies (10)
Message 2 of 11

Anonymous
Not applicable

Create a shadow matte map in a map to material.

Hide the hdri from rendering to only save out the a shadow on a transparent background.

Here is the more detailed explanation : https://support.solidangle.com/display/A5AF3DSUG/Shadow+Matte

0 Likes
Message 3 of 11

Anonymous
Not applicable

@Michiel Van Gasse

Thanks Michiel,

I'm using the shadow matte map in a map to material. How do I hide the HDRI from the render?

Paul

,

Thanks Michiel,

I'm using the shadow matte map in a map to material. How do I hide the HDRI from the render?

Paul

0 Likes
Message 4 of 11

Anonymous
Not applicable

Depends how you light the scene with the hdri.

On the left is with the environment, the right with the skylight. (change to the red marked settings)

1355-settings.jpg

0 Likes
Message 5 of 11

Anonymous
Not applicable

@Michiel Van Gasse

Thanks Michiel,

I do get the shadows I'm after with those two methods, but not the reflections. Either way I do it (HDRI in the environment or Skydome texture) if I have background colour checked then I get that colour reflecting in the model instead of the HDRI. If I have the scene background checked then I get the HDRI instead of the shadows.

See the two images below. I need to combine the reflections of matte1 with the shadows of matte2.

With Mental Ray the ground plane was visible in the reflections, but could be made invisible in the plane's object properties by disabling Visible to Reflection/Refraction and enabling Receive Shadows. That doesn't work with Arnold.

I appreciate your help.


Paul

1361-matte1.jpg

1363-matte2.jpg

0 Likes
Message 6 of 11

Anonymous
Not applicable

Ah, I see. Try turning off cast shadows of the plane.

1364-settings.jpg

0 Likes
Message 7 of 11

Anonymous
Not applicable

Thanks Michiel,

That doesn't do what I need. Your other post is closer (https://answers.arnoldrenderer.com/questions/4258/rendering-ambient-occlusion-shader-shadows-as-tran.html), but that isn't actually transparent. There's a white dot under the shadow. I'd that shadow to be see through so I can put the rendered image over a coloured background or similar (on a website for example). I can do this with MR easily with a standard matte/shadow/reflection material. It's very frustrating.

Paul

0 Likes
Message 8 of 11

Anonymous
Not applicable

1373-shadow.png

1374-shadow2.png

Both solutions above are transparent, with shadow matte map.

The ambient occlusion shader is also with transparent shadows.

0 Likes
Message 9 of 11

Anonymous
Not applicable

Hi Michiel,

Looks promising. What's is your method?

Thanks

Paul

0 Likes
Message 10 of 11

Anonymous
Not applicable
Accepted solution

shadow.zip

Hi Paul,

Here is the basic scene setup.

Let me know if something isn't clear. 😉

0 Likes
Message 11 of 11

Anonymous
Not applicable

Hi Michiel,

That's what I needed. Thank you very much for your help.

Paul

0 Likes