Depth pass?

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

Moderators: ChrisHekman, aoktar

animas3D
Licensed Customer
Posts: 29
Joined: Thu May 02, 2013 9:42 pm

Hello,

I would like to add some atmosphere to the background of my renders. I figure I could use a Depth pass for this or a fog environment. Let's start with the depth pass however.

In Blender there is something called a Mist Pass that is pretty cool. It is like a depth pass with some options. Not sure if there is something like that in Octane. In any case, how does one do a depth pass or Z depth pass in Octane. There are some tutorials on YouTube but they seem to be out of date because it does not look the same.

Thank you.

Best,

Joe.
User avatar
bepeg4d
Octane Guru
Posts: 10300
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy
Contact:

Hi Joe,
you can use the Z-Depth pass in an AOV Group, to simulate a fast fog effect.
In this case I have use it to mask an Opacity pass (White), adding some coloring, and an Overlay blending mode:
783DEE5A-416C-4ACE-A01A-1CA99AC1F0EF.jpeg
ciao,
Beppe
elsksa
Licensed Customer
Posts: 784
Joined: Sat Jul 24, 2021 1:06 am

Hello,

On top of beppe's suggestion, if you are interested to try via actual volumes, may be this could help: https://www.elsksa.me/scientia/cgi-offl ... er-volumes

Since my website is mainly covering Octane Standalone (core), here is the official documentation for Octane Cinema 4D: https://docs.otoy.com/cinema4d//Fog.html
animas3D
Licensed Customer
Posts: 29
Joined: Thu May 02, 2013 9:42 pm

First of all, thanks to both of you.

To Beppe: I have never used AOV passes, just used the beauty pass. I never tried any of the compositing nodes in Octane that you are using in your setup there. I didn't know that Octane did compositing. Looks interesting.

Suppose I want to invoke the depth pass, where do I start? How to invoke one of the AOVs? There are some tutorials on YouTube, but I think they use an old workflow that is no longer pertinent. Maybe I should start with the manual.

Edit: Unfortunately the manual seems out of date. Is there a tutorial or website that explains the new AOV workflow clearly and concisely? While I have rendered a lot of things with Octane, I never rendered passes (and for now am really just interested in a simple Z depth pass). Beppe, your image looks amazing, and I would like to understand it, but I don't really know what is going on. If you you can give me four or five steps to how to make a Z depth pass that I suppose I would use in After Effects, that would be great (although I am really interested in the compositing workflow).

To elska: Thank you so much! Your information about volumes looks really cool! As soon as I get this depth pass and AOVs worked out, I will certainly dig into that! Looking forward.

Thank you!


I have another question, but I will ask in another thread because it is unrelated.
User avatar
bepeg4d
Octane Guru
Posts: 10300
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy
Contact:

Ok, le's try with this example:
4B603BFF-CE60-4447-94C1-9E487B2187DB.jpeg
1. Go to Render Settings/OctaneRender/Render AOV Group, activate the Enable checkbox, and press Add render AOV, then info/Z-depth AOV:
BB0D281A-CBA1-421B-8385-343247D7CF7B.jpeg
2. Correct the Z-depth Max value, checking the result in Live View:
2E2ACFB8-C87F-4EEB-8D1E-DB36F14B6CFE.jpeg
3. Go to Render Settings/OctaneRender/AOV Groups, and press Add input button:
790707E6-7640-4E83-9D44-D0DB36BC02B5.jpeg
4. We need the base layer for compositing, so, in the Input 1 node, press the All layer button, then Render AOV output/Beauty:
227F872E-1B58-4923-9F9E-CB7841D061A7.jpeg
5. Then we need a White pass to mimic the fog on top of the beauty, so press again the All layer button, then choose Render AOV output/Info/Opacity:
21DFEB49-98DF-48A7-BE82-EE6FC5863B62.jpeg
6. Press the Node Editor button:
1B90738B-0270-4109-AECE-ABC2C112AB4F.jpeg
7. In the Node Editor, extract the Mask pin from the Opacity layer, and choose Render AOV output:
7507079B-AB42-49D0-BE01-ED604AE1C226.jpeg
8. And choose as Input type the Z-depth AOV:
CE09D5DA-6945-4B9D-AE6E-680CA66804A0.jpeg
9. Finally select the Composite AOV node, and change the Alpha operation to Alpha compositing, you can continue to fine toon the Z-depth Max value, checking the result in Live View:
5D4591EA-ADC0-4C08-AA7A-9B4B81694F6E.jpeg
You can also use the Scale, Color Multiplier, Opacity, and Bland Mode to obtain different effects.
For example, you can invert the Opacity layer, to have a Black output, and use the Multiply Bland Mode, to have a Black fog effect:
D3D69D52-F9E7-4D9B-9920-F6AAF644975A.jpeg
Happy GPU rendering,
ciao,
Beppe
animas3D
Licensed Customer
Posts: 29
Joined: Thu May 02, 2013 9:42 pm

Dear Beppe,

Thank you so much for your excellent step by step description. Bless you. It looks like it will be just what I need, both for how to make the depth pass and to understand the compositing process!

However, I haven't finished going through it yet. I stopped at Number 4. It seems like either I have a different version of Octane that you do, or something else is going wrong.

If you take a look at the file I am attaching, you will see the pop up menu looks different. In yours, there is something called Beauty, in mine, there is Main and Beauty is a Popup with many different passes in it, none of which just says "Beauty".

Please let me know what you think is going on so I can continue your excellent tutorial.

Thanks again,

Joe.
Attachments
Beauty.png
User avatar
bepeg4d
Octane Guru
Posts: 10300
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy
Contact:

Hi Joe,
yes, the Main pass is equal to the Beauty pass, but please upgrade c4doctane to the latest stable version 2021.1-R2:
viewtopic.php?f=85&t=78663

ciao,
Beppe
animas3D
Licensed Customer
Posts: 29
Joined: Thu May 02, 2013 9:42 pm

Dear Beppe,

THANK YOU!!! It works like a charm.

I still have to understand the compositing process better in Octane and would like to read more about that (if you happen to know any online resources that would be great).

However, this works perfectly and I don't have to step out to an external compositing program to composite it. That is great! Although I would still like to know how to export or render out a separate Z-depth pass...

In the meantime, this might be everything I need!

Cheers,

Joe.
User avatar
bepeg4d
Octane Guru
Posts: 10300
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy
Contact:

Hi Joe,
great :D

About "how to export or render out a separate Z-depth pass...", at step 1 you should have already activated it in the Render Settings/OctaneRender/Render AOV Group panel, that corresponds to the old Multi-Pass panel.

Happy GPU rendering,

ciao,
Beppe
animas3D
Licensed Customer
Posts: 29
Joined: Thu May 02, 2013 9:42 pm

Hi Beppe,

I am doing a small test render of my file and I noticed that the composite is not rendered. When I opened some of the rendered frames, they seem to just be the beauty pass (without the composited Opacity layer masked with the Z-depth pass).

What am I doing wrong? When I go to the picture viewer and switch to Single-Pass, one of the passes is called Out1 and it looks correct. However the frames that are saved seem only to be the beauty pass before the Z-depth.

Edit: I just noticed that I do not have a filename entered in the Render AOV Group area in the render settings. Does that have something to do with it?

Thank you.
Post Reply

Return to “Maxon Cinema 4D”