Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] I need help! => Topic started by: mike_kennedy on 2018-01-11, 15:52:31

Title: Model needs to Self shadow but not cast shadows
Post by: mike_kennedy on 2018-01-11, 15:52:31
Is there any way in corona to get an object to self shadow but not cast shadows on other objects?
I need an object to have shadows from itself on it's self, but not cast shadow on other objects
Is this possible other than using an AO setup in the shader?

Title: Re: Model needs to Self shadow but not cast shadows
Post by: maru on 2018-01-11, 16:38:53
I can't think of any solution. That would be probably too fake for Corona to handle.
Title: Re: Model needs to Self shadow but not cast shadows
Post by: TomG on 2018-01-11, 16:46:33
Only way I can think of is to render twice, once with the object set to cast shadows, once with it set to cast no shadows, then use a mask to composite the shadow version of the object only over the scene with it set to cast no shadows. The snag I can think of there is that reflections could be tricky, e.g. the reflections would still show shadows cast by the object into the scene.
Title: Re: Model needs to Self shadow but not cast shadows
Post by: dj_buckley on 2018-01-12, 09:42:25
Two lights - both identical.

One set to include the object you want self shadows on, the other set to exclude that object.

Would that not work?
Title: Re: Model needs to Self shadow but not cast shadows
Post by: Ondra on 2018-01-15, 10:49:47
or ambient occlusion? ;)