Machine Learning panel labeling using Render Layer ID

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

Moderators: ChrisHekman, aoktar

MrMetatron
Licensed Customer
Posts: 9
Joined: Sun Sep 01, 2019 10:48 am

jobigoud wrote:Another solution that might be closer to what you are trying to do: use a null material on the proxy objects. This way they won't show up in the main beauty render, but they will still show up in the Object layer color AOV.
In this case there is no need for render layers, you can save the beauty and the segmentation map in one render.
I'm not familiar with null materials. Where can I find more info on it?
User avatar
jobigoud
OctaneRender Team
Posts: 247
Joined: Sat Aug 15, 2015 1:28 pm

Here: https://docs.otoy.com/StandaloneH_STA/S ... ht=null%20

It looks like it's not implemented in the C4D plugin but I found a different way using opacity.

Basically the idea is to set the material of the proxy objects so that it doesn't interact with light in any way during the beauty pass, so you can see through it and only see the normal geometry, but still show up in the object layer color AOV, where it will "cover" the normal geometry and be rendered in the color of your choice.

Opacity way: set the opacity of the proxy object to 0, then in the Render AOV settings, set the Info opacity threshold to 0. (See screenshot). This threshold is evaluated as "above or equal", so even with opacity 0 the proxy object will show up in the Object layer color AOV.
2022-12-13 13-39-12_Render Settings.png
If this doesn't work for you, you can also set the proxy objects material this way:

Basic > Material type = Specular.
Reflection > Float = 0.0.
Index > Index = 1.0
Transmission > Float = 1.0.
Common > Fake shadows = checked.
MrMetatron
Licensed Customer
Posts: 9
Joined: Sun Sep 01, 2019 10:48 am

The last solution with the null material solved the issue with the ability to control the color so elegantly. :o

Thank you for your help on this, I appreciate it very much. :)

Cheers
Post Reply

Return to “Maxon Cinema 4D”