Cryptomatte + Layer mask

Maxon Cinema 4D (Export script developed by abstrax, Integrated Plugin developed by aoktar)

Moderators: ChrisHekman, aoktar

roaldvdmeer
Licensed Customer
Posts: 12
Joined: Wed Apr 29, 2015 3:36 pm

Hi, is there a way to render cryptomatte passes plus Layer mask id's at once? Since cryptomattes are terribly slow in After effects, i would like to use layer id's for most objects and have a extra cryptomatte pass as a backup in case i need some extra passes/flexibility in post. Thanks!
User avatar
bepeg4d
Octane Guru
Posts: 10365
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy
Contact:

Old Layer Masks are not good, since are calculated by c4d internal render!
So they cannot consider DOF or Motion Blur, and can only offer a brutal b&w mask of the geometry.
They are very slow to calculate in c4doctane, compared with Octane cryptomatte/info passes.
They were added in c4doctane plugin, when Octane did not have any pass related to Layer ID.

ciao Beppe
roaldvdmeer
Licensed Customer
Posts: 12
Joined: Wed Apr 29, 2015 3:36 pm

bepeg4d wrote:Old Layer Masks are not good, since are calculated by c4d internal render!
So they cannot consider DOF or Motion Blur, and can only offer a brutal b&w mask of the geometry.
They are very slow to calculate in c4doctane, compared with Octane cryptomatte/info passes.
They were added in c4doctane plugin, when Octane did not have any pass related to Layer ID.

ciao Beppe
I was not talking about the C4D object buffers but the regular Octane layer masks (which have DOF and Motion blur). I know those mattes also need a little extra time to calculate for Octane and i'm a big fan of the concept of cryptomattes, but for now it's just not workable in after effects to have a bunch of cryptomatte layers in a 4K composition. So is it possible to render octane layers masks plus cryptomattes?
User avatar
bepeg4d
Octane Guru
Posts: 10365
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy
Contact:

Yes sure, why not?
Just enable the desired info pass.
You can also use the Octane Object tag, assign a specific color to a mesh or group of meshes, via Object Layer tab, and enable the Object Layer Color pass in the InfoChannel pass section:
Image

ciao Beppe
roaldvdmeer
Licensed Customer
Posts: 12
Joined: Wed Apr 29, 2015 3:36 pm

bepeg4d wrote:Yes sure, why not?
Just enable the desired info pass.
You can also use the Octane Object tag, assign a specific color to a mesh or group of meshes, via Object Layer tab, and enable the Object Layer Color pass in the InfoChannel pass section:

ciao Beppe
Hi Beppe, thanks a lot for your reply and effort. Sorry if i was unclear but i'm looking for a way to render cryptomattes plus Layer masks (Seperate B&W image per Layer ID), see image. The problem is that when i select "EXR(Octane)" it enables the cryptomattes option but hides the "Render layer mask" section, see image attached. When i switch back to "EXR", it re-enables the Render layer mask ID's but you're not able to render cryptomattes. Is there a way to get both?

Not sure how to use the "Render layer mask" pass from the "Info passes" section but it looks like it combines all Layer ID's?
Attachments
Screenshot-2020-10-29 15_42_47-Window.png
InkedScreenshot-2020-10-29 15_42_32-Window_LI.jpg
User avatar
bepeg4d
Octane Guru
Posts: 10365
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy
Contact:

So, we are going back to my first answer here:
viewtopic.php?f=30&t=76101#p391414

Render layer masks are not calculated with Octane engine, but with c4d internal render engine, so are obsolete and incorrect...I don’t know another way to explain this :roll:

I think that it is better for you to find out why Cryptomatte is slow in AE in an AE forum or similar, since you are the first one to report this, and it is not directly related to Octane :roll:

ciao Beppe
roaldvdmeer
Licensed Customer
Posts: 12
Joined: Wed Apr 29, 2015 3:36 pm

Haha ok. Sorry i can’t explain better either. It has nothing to do with the internal C4D render system, the layer ids are calculated by octane and works perfectly fine (also with DOF and motion blur etc). And slow cryptomattes in AE are a common problem, there is not much we can do about it instead of switching to Nuke. Thanks anyway.
Jengo_1
Licensed Customer
Posts: 73
Joined: Sun Aug 25, 2019 4:17 am
Contact:

Brother, you're trying to tell Bepe how his own program works. He's telling you it's calculated by c4d's engine, and that's why it's slow, so that's what it is :)

Beyond that, it's a known fact that layer masks were generally hated by the community because they're so slow and hurt the speed of rendering with octane.

Nobody uses layer masks to get B&W object passes. Instead, we use Object ID. Once each object you want to mask has an assigned color (R,G or B), you open the pass layer in AE.
If it's a multifile - use extractor, and in the extractor's ObjectID channels select the same color for all channels. This will turn the pass into a B&w mask layer of that object with the color you selected. Then do that for each color and you have different B&W masks for different objects.
If you use single Object ID pass file, use effect called Shift Channels. Then, again, select the same color in each channel, and it'll turn it into a B&W mask.
roaldvdmeer
Licensed Customer
Posts: 12
Joined: Wed Apr 29, 2015 3:36 pm

Ok Brother! 8-) I think we were not talking about the same thing. But back to my question; i guess the answer is simply "no"?

So:

Object layer color (RGB mattes) + Crypto: Yes
Object layer ID + Crypto: Yes
Layer Masks (ID1 ID2 ID3 etc) + Crypto: No

Right? Thanks!
Jengo_1
Licensed Customer
Posts: 73
Joined: Sun Aug 25, 2019 4:17 am
Contact:

Hey brother, I think you're right the answer is no. Essentially this is for your own good :)

Mind if I ask why you want the Layer ID and not Object ID?
Post Reply

Return to “Maxon Cinema 4D”