Mantra volume shadows on matte geometry

   1047   4   1
User Avatar
Member
59 posts
Joined: Nov. 2017
Offline
Hi guys,

We're rendering surfaces with V-Ray and volumes with Mantra. I'm trying to make a Mantra LPE to give me the shadows that volumes cast on the surfaces, but not much success yet, any ideas how to write it?

Thanks!
User Avatar
Member
7836 posts
Joined: Sept. 2011
Offline
There's no LPE for shadow passes. The shadow pass aov doesn't know who cast the shadow, so it can't be used to just get volume shadows. The only reliable way to get a shadow pass out of any renderer that I know of is to render the scene twice, with volumes as phantom and without the volumes, and divide or subtract the results in comp.
User Avatar
Member
8620 posts
Joined: July 2007
Offline
you should be able to render it in 1 pass:
- make your objects fully diffuse, make them not cast shadows
- make your volumes phantom
- include 2 AOVs one of them unoccluded which you can then subtract in comp to get shadow, like: direct and direct_noshadow

or if you want those as LPE's it would be:
direct diffuse: lpe:CDL
direct diffuse noshadow: lpe:unoccluded;CDL
or maybe you can try beauty
beauty: lpe:C.*
beauty noshadow: lpe:unoccluded;C.*
etc...
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
59 posts
Joined: Nov. 2017
Offline
Cool, I'll try that! Used to do it in two renders but that's taking time, would be great if it becomes AOV.
User Avatar
Member
7836 posts
Joined: Sept. 2011
Offline
It's not possible with one render. using a pass without shadows will make it so the volumes can cast shadows in areas where the lighting is already occluded resulting in double shadows.
  • Quick Links