world in material id color

Use this forum for general user support and related questions.
Post Reply
User avatar
Egert_Kanep
Posts: 202
Joined: Tue Mar 13, 2018 10:34 am

world in material id color

Post by Egert_Kanep » Wed Oct 23, 2019 11:02 am

Is it possible to exclude world from material id color aov? I cannot use alpha to cut it out because this is antialiased and white world color bleeds into other id's
Attachments
beauty
beauty
material id color
material id color

User avatar
Dade
Developer
Posts: 3398
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: world in material id color

Post by Dade » Wed Oct 23, 2019 2:03 pm

Are you looking of an object mask for composing ? You should use OBJECT_ID_MASK AOV :idea:
Support LuxCoreRender project with salts and bounties

User avatar
Egert_Kanep
Posts: 202
Joined: Tue Mar 13, 2018 10:34 am

Re: world in material id color

Post by Egert_Kanep » Wed Oct 23, 2019 2:05 pm

Not object mask. I'm strictly using only material color id masks, because I can use this to create perfect rgb masks. Other ID masks use some weird hacks in Blender to create anti aliasing and what else.

Altough cryptomatte integration could solve all these problems *wink *wink :D Could even create a bounty for it

User avatar
Dade
Developer
Posts: 3398
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: world in material id color

Post by Dade » Wed Oct 23, 2019 2:48 pm

Egert_Kanep wrote:
Wed Oct 23, 2019 2:05 pm
Not object mask. I'm strictly using only material color id masks, because I can use this to create perfect rgb masks. Other ID masks use some weird hacks in Blender to create anti aliasing and what else.
So MATERIAL_ID_MASK AOV is probably what you are looking for :idea: However you can get only one out of a single rendering.

Back to your original question: why background is a problem ? Isn't the same on the borderline of 2 different materials ? Do you just need a black background ?
Egert_Kanep wrote:
Wed Oct 23, 2019 2:05 pm
Altough cryptomatte integration could solve all these problems *wink *wink :D Could even create a bounty for it
Cryptomatte support is something worth adding.
Support LuxCoreRender project with salts and bounties

User avatar
Egert_Kanep
Posts: 202
Joined: Tue Mar 13, 2018 10:34 am

Re: world in material id color

Post by Egert_Kanep » Wed Oct 23, 2019 3:09 pm

Background should be black, yes. If I only use pure rgb colors in MATERIAL_ID_MASK AOV I get clean masks. White is problem because that contains all full rgb values, black doesn't and won't mess up the masks

User avatar
Dade
Developer
Posts: 3398
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: world in material id color

Post by Dade » Wed Oct 23, 2019 9:03 pm

Ok, I changed object and material ID for background to 0 (from 0xffffffff, aka white).
Support LuxCoreRender project with salts and bounties

User avatar
Egert_Kanep
Posts: 202
Joined: Tue Mar 13, 2018 10:34 am

Re: world in material id color

Post by Egert_Kanep » Wed Oct 23, 2019 9:29 pm

That's awesome news

Post Reply