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!
Mantra volume shadows on matte geometry
1047 4 1- HristoVelev
- Member
- 59 posts
- Joined: Nov. 2017
- Offline
- jsmack
- 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.
- tamte
- 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...
- 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
FX Supervisor
Method Studios, NY
- HristoVelev
- Member
- 59 posts
- Joined: Nov. 2017
- Offline
- jsmack
- Member
- 7836 posts
- Joined: Sept. 2011
- Offline
-
- Quick Links