Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] Bug Reporting => Topic started by: Jpjapers on 2020-09-23, 13:24:27

Title: Masks dont pick up layered materials unless the base materials shares the ID
Post by: Jpjapers on 2020-09-23, 13:24:27
When using ID masks, a layered material will not show on a mask layer when masked by ID if the base material within the layered material doesnt share the same ID.

Setup:

Layered material = ID 1
Base material = ID 0
Mask element = ID 1

Mask will not show the layered material assigned to the geometry until the base is also ID 1.
Not sure if a bug or a feature as the Layered material should automatically be picked up by the mask IMHO. It shouldnt rely on the base i think?

Reported: https://coronarenderer.freshdesk.com/support/tickets/191526
Title: Re: Masks dont pick up layered materials unless the base materials shares the ID
Post by: maru on 2020-09-23, 17:54:00
I thought it was already reported. We will definitely look into this.
The ticket is assigned to George so I will leave the investigation + logging the issue to him.
Title: Re: Masks dont pick up layered materials unless the base materials shares the ID
Post by: Jpjapers on 2020-09-23, 18:43:53
I thought it was already reported. We will definitely look into this.
The ticket is assigned to George so I will leave the investigation + logging the issue to him.

Thanks, i reported on freshdesk earlier today but thought it best to post here incase others have the issue and come looking for a solution.
Title: Re: Masks dont pick up layered materials unless the base materials shares the ID
Post by: GeorgeK on 2020-09-24, 10:15:14
This looks off, thanks for reporting please also check my ticket response.

(internal id=569074750)
Title: Re: Masks dont pick up layered materials unless the base materials shares the ID
Post by: Jpjapers on 2020-09-24, 13:20:04
Thanks George.

For those coming here looking for a temporary workaround...

Method:


First you need to assign your ID to your layered material.
Second you must assign the base material within the layered material with the same ID.
Then you must reapply the same ID to the layered material again (this seems to kickstart corona into recognising something has changed and refreshes the interactive render)
This should now show the layered material in the correct Mask pass.