Author Topic: [solved] Is there a way to get a mask for/from decals  (Read 295 times)

2023-06-13, 14:39:43

hiramiya

  • Active Users
  • **
  • Posts: 11
    • View Profile
Is there a way to get a mask rendered for decals?
For instance, in the attached image is there a way to render a mask for the pink parts which are a Corona Decal in this case?
Material ID, Object ID, or anything else dont seem to work.
Previously in situations like these, I would have to make a second render with a black material override for all the materials in a scene, and then turn all the label/decal materials into self-illuminating materials to get a black and white render to use as a mask in post. I was under the impression that Corona Decals would spare me the second render.
« Last Edit: 2023-06-14, 09:54:39 by maru »

2023-06-13, 15:06:00
Reply #1

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8872
  • Let's move this topic, shall we?
    • View Profile
    • My Models
Try CMasking_ID in Instance ID mode. Should work with decals.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2023-06-14, 03:03:22
Reply #2

hiramiya

  • Active Users
  • **
  • Posts: 11
    • View Profile
Well done! I didn't notice it! Thank you very much!

2023-06-14, 10:15:42
Reply #3

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8872
  • Let's move this topic, shall we?
    • View Profile
    • My Models
You are welcome! There is a possibility that decals support will be extended to other render elements in the future, you can subscribe to this topic if you want to be informed when/if that happens: https://forum.corona-renderer.com/index.php?topic=40121.0
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures