Author Topic: include/exclude an object  (Read 3659 times)

2019-08-22, 11:01:45

ficdogg

  • Active Users
  • **
  • Posts: 112
    • View Profile
Is there a way to exclude one object from another object with corona?
For instance, in the attached image I have a disc for adding a targeted reflection on the cube, and I have the disc set not to appear directly only in reflections via a compositing tag. The issue comes in the fact that it reflects in the floor as well which while technically is how it's supposed to be, I would like to exclude it from showing up in the floor reflections.
With physical, I would just use the include/exclude tab on the compositing tag, but those don't seem to work with corona.
Is there an alternative way to achieve this?

2019-08-22, 13:53:57
Reply #1

TomG

  • Administrator
  • Active Users
  • *****
  • Posts: 5434
    • View Profile
With Corona's emphasis on acting like the real world, things like "object appears one way to one object, and another way to another object" are not possible. You can use rayswitch to affect an object's reflection in ALL objects, but that's as much fakery as is usually allowed :) Other than that you'd have to treat it as a photographer would, take one shot with the object appearing in reflections, remove the object, take another shot so it's in no reflections, and mask between the two images in post.
Tom Grimes | chaos-corona.com
Product Manager | contact us

2019-08-23, 16:19:56
Reply #2

ficdogg

  • Active Users
  • **
  • Posts: 112
    • View Profile
Thanks, I thought as much :)
The idea was to avoid rendering twice :D