Matte problem

Generic forum to discuss Octane Render, post ideas and suggest improvements.
Forum rules
Please add your OS and Hardware Configuration in your signature, it makes it easier for us to help you analyze problems. Example: Win 7 64 | Geforce GTX680 | i7 3770 | 16GB
amanite666
Licensed Customer
Posts: 6
Joined: Tue Nov 19, 2019 9:34 am

PEASE HELP !!!

In C4D, I have rows of cells lined up behind each other in a clone. Each cell contains a nucleus.
For my future compositing, I need to isolate all the nuclei, without the cell membrane that is in front of them. But the membrane's ior must remain effective.
In my final pass for these nuclei, all those in the foreground must be visible, while those behind them should only be visible when the cell membrane is not in front of them.

Thank you in advance for your help !
Attachments
Capture d’écran 2025-10-20 083331.png
Last edited by amanite666 on Mon Oct 20, 2025 8:47 am, edited 1 time in total.
amanite666
Licensed Customer
Posts: 6
Joined: Tue Nov 19, 2019 9:34 am

Yes, I think the solution could be with custom AOV but I don't find the way to achieve exactly what I want.
amanite666
Licensed Customer
Posts: 6
Joined: Tue Nov 19, 2019 9:34 am

bepeg4d wrote: Mon Oct 20, 2025 8:13 am Hi,

Have you tried with Custom AOV:
https://docs.otoy.com/cinema4d/CustomAOVs.html
Capture AOV:
https://docs.otoy.com/cinema4d/CaptureAOV.html
?

ciao,
Beppe
Yes, I think the solution could be with custom AOV but I don't find the way to achieve exactly what I need.
User avatar
bepeg4d
Octane Guru
Posts: 10434
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy
Contact:

Ok, please have a look at this example scene:
RefractionCustomAOV.c4d.zip
(339.14 KiB) Downloaded 9 times
Let's say that we need a mask for the red capsule inside the glass sphere:
IMG_6041.jpeg
You need to go to the Basic tab of the red material and enable the Custom AOV channel, then set it to Custom2, then go to Render AOV Manager tab and create a new Custom AOV sets to 2 and visible after refraction:
IMG_6042.jpeg
ciao,
Beppe
amanite666
Licensed Customer
Posts: 6
Joined: Tue Nov 19, 2019 9:34 am

Thank you so much Beppe!!

It's almost what I need. But, in my scene, I have multiple cells (cloner) and on the custom pass, there is a lot of reflexions with other cells. Il put a Ray swich node in the specular material whit all the value to 0, except for tha camera ray (1). It's better but I've got alwys some refraction. Any idea on how the achieve this? I realy need just the capsule.
Thank a lolt!

(I put my C4D file in the message)
Image
Attachments
RefractionCustomAOV_01.rar
(354.73 KiB) Downloaded 9 times
Capture d’écran 2025-10-21 121349.png
User avatar
bepeg4d
Octane Guru
Posts: 10434
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy
Contact:

Ok, just for calculating the mask, you can set the Specular Depth to 2 in Kernel panel:
IMG_6053.jpeg
ciao,
Beppe
amanite666
Licensed Customer
Posts: 6
Joined: Tue Nov 19, 2019 9:34 am

Thank's again Beppe, but it doesn't work with a different camera angle.
Image
Attachments
Capture d’écran 2025-10-22 090249.png
User avatar
bepeg4d
Octane Guru
Posts: 10434
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy
Contact:

Weird, it work in any direction here, with a default Specular material:
IMG_6055.jpeg
The ray should't have enough depth to show extra refraction :roll:

ciao,
Beppe
amanite666
Licensed Customer
Posts: 6
Joined: Tue Nov 19, 2019 9:34 am

Thank you so much! You saved me!
Once again, it wasn't that complicated, but I had to figure out how to combine the different parameters to achieve my goal.
Have a great day!
Ciao!
Post Reply

Return to “General Discussion”