Chaos Corona for Cinema 4D > [C4D] I need help!

Layered Material in corona 12 Invisible to id Material Mask

(1/1)

brabus.s:
I updated to Corona 12 a few days ago, and I’ve noticed that both the Layered Materials and materials using the Multishader no longer appear in the Material ID Mask (Multipass) as they used to.
In all previous versions of Corona, this feature worked perfectly, displaying the masks correctly.
Now, this issue has created a significant challenge in post-production, as I rely on accurate masks for further adjustments.
Has anyone else experienced this problem?

bnji:
Hello @brabus.s

Thank you for posting your inquiry.
According to what you've mentioned, could you please let me know what Corona version you say this was working with so I can test it as well?
I think there's a little misunderstanding about how Material ID Multi-pass displays the masks (or in which cases it does).
So far, I've tested the scene you've provided, and here are my findings:
-For the Corona Physical Materials, they work as expected. Each material is assigned to a polygon selection, so the object has 3 polygon selections, which are displayed when using the Material ID Multi-pass.
-For the Corona Layered materials, you were not using the base Material. You loaded the materials at the first layer instead. If you move the materials to the base layer, it will work as expected. (Still, I'll report this to the dev team)
-For the Corona Select materials, they're working as expected when looking at the Material ID Multi-pass.
-For the Multishader, it is expected not to be displayed in the Material ID Multipass, as you're loading different textures in a single material, so the Material ID Multi-pass displays a single color (this makes sense) as only one material is used on the object. Since the object used for this test is a Cube inside a Cloner, the Instance ID Multi-pass is expected to work here, as the Cloner is generating new objects. Additionally, the Multishader is set to display the different textures per object in your test scene.

On the other hand, could you please try using the Corona 12 Update 1 Hotfix 1 instead? (I can see from your screenshots that you're using Corona 12 Update 1.
You can even try using the latest Daily Build Instead; everything should be working as well.
Lastly, if your inquiry was related to something else, could you please elaborate a little bit more?

bnji:
Here are my tests:


00 - The Corona Physical Material is displayed in the ID (Material) Multi-pass.
01 - The Corona Layered Material is displayed in the ID (Material) Multi-pass.
02 - The Corona Select Material is displayed in the ID (Material) Multi-pass.
03 - The Corona Multishader used in a Corona Physical Material is displayed as a single color (since only one material is applied to the Cloner) for the ID (Material) Multi-pass.
04 - The ID (Instance) Multi-pass displays a different color for each object from the Cloner.

Navigation

[0] Message Index

Go to full version