Hair shadow pass setup?

Discussions about rendering in SOFTIMAGE©
User avatar
rray
Moderator
Posts: 1810
Joined: 26 Sep 2009, 13:51
Location: Bonn, Germany

Hair shadow pass setup?

Post by rray » 10 Nov 2011, 14:27

Moin,
found some different takes on that aleady but none of them so far did quite work for me.

The idea is simply to have every material display 100% white unless there's a shadow from the hair (or in my case grass) falling on it.

What so far worked best for me is the mia_matteshadow shader that has an output shadow_raw that does exactly that.

The problem I have now is that shadows from other objects are output, too. I could simply turn shadow casting off for those objects, but then I have another problem which is that shadows from the hair that are inside those formerly shadowed areas are being output too --- which would result in double shadows when compositing.

So it seems I would have to have shadows from those other objects rendered white -- I think this would do it but I have no idea how to set this up (in 1 pass), will be grateful for any ideas or input

Cheers,
Ray
softimage resources section updated Sep 26th 2026

User avatar
Mathaeus
Posts: 1778
Joined: 08 Jun 2009, 19:11
Location: Zagreb, Croatia

Re: Hair shadow pass setup?

Post by Mathaeus » 10 Nov 2011, 19:11

Here's yet another recipe, popular in community of another 3d app, when we already with "matte-shadow" name. Characters in that self-or-from-others shadows situation. At least, a lot of dealing with matte keyers in comp. Don't know does it even work with hairs. Max, VRay and Fusion, but should be applicable anywhere.
Link.

User avatar
rray
Moderator
Posts: 1810
Joined: 26 Sep 2009, 13:51
Location: Bonn, Germany

Re: Hair shadow pass setup?

Post by rray » 13 Nov 2011, 22:21

Thanks. It looks like it would work with hair too. But no "hair-shadow-only" pass, probable need another matte shadow pass to cut out from the hair shadow pass.
softimage resources section updated Sep 26th 2026