Author Topic: Model needs to Self shadow but not cast shadows  (Read 2201 times)

2018-01-11, 15:52:31

mike_kennedy

  • Active Users
  • **
  • Posts: 98
    • View Profile
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?


2018-01-11, 16:38:53
Reply #1

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12754
  • Marcin
    • View Profile
I can't think of any solution. That would be probably too fake for Corona to handle.
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2018-01-11, 16:46:33
Reply #2

TomG

  • Administrator
  • Active Users
  • *****
  • Posts: 5463
    • View Profile
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.
Tom Grimes | chaos-corona.com
Product Manager | contact us

2018-01-12, 09:42:25
Reply #3

dj_buckley

  • Active Users
  • **
  • Posts: 876
    • View Profile
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?

2018-01-15, 10:49:47
Reply #4

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
or ambient occlusion? ;)
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)