Author Topic: CmaskingID not behaving as it should?  (Read 982 times)

2022-05-05, 02:20:47

Saj83

  • Users
  • *
  • Posts: 4
    • View Profile
Referencing this conversation from 5 years back:
https://forum.corona-renderer.com/index.php?topic=18033.0

It appears that the CmaskingID element displays different colours per ID ONLY when there are different materials assigned to them. Doesn't this contradict what it's supposed to do? Which is display the different IDs given to parts of an object regardless of whether a unique material is assigned to those IDs?

This shows random IDs assigned to a cloned bunch of teapots (one object, one material, multiple IDs)


This shows the same but with a muti-subobject material assigned (one object, multiple materials, multiple IDs)


Am I wrong to assume the goal of the CmaskingID element is to display IDs, even if there's no materials assigned to them?

2023-02-14, 16:24:51
Reply #1

Avi

  • Corona Team
  • Active Users
  • ****
  • Posts: 505
    • View Profile
Hi,

Could you please provide an explanation of what you are doing here? It is a bit confusing. As per my knowledge, if you have the CMasking_ID render element and you have selected "Masking by ID" to "Material ID," then the result you are getting is expected. If you apply one material, then you will see one color ID in all objects, and if you apply multiple materials, you will see multiple color IDs. I may have misunderstood what you are trying to show here. Maybe if you can provide a simple scene with repro steps and tell me the expected result and what result you are getting, which is incorrect, then I may be able to help you further on this.
Arpit Pandey | chaos-corona.com
3D Support Specialist - Corona | contact us