AOV Tutorial? BW mask for object

Forums: AOV Tutorial? BW mask for object
Maxon Cinema 4D (Export script developed by abstrax, Integrated Plugin developed by aoktar)

Moderator: aoktar

AOV Tutorial? BW mask for object

Postby ceen » Wed Sep 08, 2021 9:55 am

ceen Wed Sep 08, 2021 9:55 am
Hi,

I am trying to render a bw mask for an object with the new AOV system. I fail to see how to output the render layer ID from the object tag as a black and white pass. Is there a way? I only get colored RGB passes?
OctaneRender Studio 2020.2.3

(AOV groups crash C4D every 3 minutes here)
ceen
Licensed Customer
Licensed Customer
 
Posts: 107
Joined: Wed Jun 10, 2015 9:43 pm

Re: AOV Tutorial? BW mask for object

Postby speltrong » Wed Sep 08, 2021 12:21 pm

speltrong Wed Sep 08, 2021 12:21 pm
You can use the Render Layer Mask system for this, though you really should start learning the Cryptomatte system (colored masks) going forward since it's so much better. I'm in the middle of writing up a full guide on this, but this should get you through:

Simplest workflow for a Render Layer Mask:

Add an octane object tag to your geometry. In the Object Layer tab, set the Layer ID to anything other than 1. 1 will merge in with the background, so start with 2 or 10 or whatever.

In C4D Settings>Octane Renderer>Render Passes tab, check the Enable checkbox at the top. Put in a file name. Use EXR format (NOT EXR(Octane)). EXR(Octane) will work well with Cryptomatte, but not Render Layer Mask. At the bottom, there's a section for Render Layer Mask - twirl that down and check ID 2 or whatever you used.

Also check Save Beauty so you get the beauty pass in the same file.

Keep in mind that Render Layer masks take an excessively long time to produce and can even multiply your render time per frame if you have several of them.

A better way is to do the same steps above, choosing a Layer ID that's not 1, and then choose EXR(Octane) from the format. Go to the Cryptomatte section instead of Render Layer Mask and check Crypto Object Node (this sorts the colors based on the Layer IDs you choose). Then use your post application to extract the correct mask. In Photoshop, you'll want the exr.io plugin (free), and tell it to extract cryptomattes. For Ae, you'd use EXtractoR which has the ability to pull specific masks based on what you chose.

Cryptomatte is much, MUCH faster than Render Layer Mask and accounts for things like depth of field and motion blur nicely.

hope that helps

-s
speltrong
Licensed Customer
Licensed Customer
 
Posts: 50
Joined: Wed Mar 29, 2017 6:08 pm

Re: AOV Tutorial? BW mask for object

Postby bepeg4d » Thu Sep 09, 2021 6:44 am

bepeg4d Thu Sep 09, 2021 6:44 am
Please avoid to use the old Render Masks, they ar deprecated.
Old Render 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 were added in c4doctane plugin when Octane SDK did not have any pass related to Layer ID.
Not only, they are not supported in Standalone or ORC/RNDR.

Cryptomatte is great, but sometimes it is even too much, if you need only few masks.
In this case, you can use the Object layer color pass, and define the color of the Object pass with an Octane Object tag:
47418AA7-4479-483B-9A92-5E56AFC6183D.jpeg


ciao Beppe
User avatar
bepeg4d
Octane Guru
Octane Guru
 
Posts: 9958
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy

Re: AOV Tutorial? BW mask for object

Postby speltrong » Thu Sep 09, 2021 10:48 am

speltrong Thu Sep 09, 2021 10:48 am
That's good to know - going to add that to the guide

Thanks @bepeg4d :)
speltrong
Licensed Customer
Licensed Customer
 
Posts: 50
Joined: Wed Mar 29, 2017 6:08 pm

Re: AOV Tutorial? BW mask for object

Postby SSmolak » Thu Sep 09, 2021 4:56 pm

SSmolak Thu Sep 09, 2021 4:56 pm
I think that every old features, nodes, materials, settings should be marked with different color or font because there too many old features that are not supported anymore and they exist only for compatibility reasons.
Architectural Visualizations http://www.archviz-4d.studio
User avatar
SSmolak
Licensed Customer
Licensed Customer
 
Posts: 1094
Joined: Sat Feb 07, 2015 5:41 pm
Location: Poland

Re: AOV Tutorial? BW mask for object

Postby NVN » Thu Mar 17, 2022 1:38 pm

NVN Thu Mar 17, 2022 1:38 pm
Do I understand this correctly?
You can only render multiple b/w images with Cryptomatte?
The type "Render layer mask" in the AOV is therefore totally useless?

I personally find this really sad.
Cryptomatte is quite nice, but something like this has to work natively....other renderers can do it too.
User avatar
NVN
Licensed Customer
Licensed Customer
 
Posts: 504
Joined: Tue Jun 08, 2010 8:10 pm

Return to Maxon Cinema 4D


Who is online

Users browsing this forum: No registered users and 29 guests

Thu Apr 25, 2024 5:44 am [ UTC ]