A method to perfectly match Z-Pass DOF with In-Render DOF?

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

Moderators: ChrisHekman, aoktar

Post Reply
bowserlm
Licensed Customer
Posts: 3
Joined: Wed Sep 06, 2017 10:48 pm

I had a situation come up in a project that I wasn't sure of the technique for so I wanted to post it here--

In a nutshell, I have a render that is using in-camera DOF and has a focus pull using a focus object with the C4D camera.

In the compositing, I realized that I needed some extra utility passes for some things I needed to do, including a UVW (Texture Coordinates) pass.

The issue I then discovered was that I (obviously) didn't want to render the DOF in the UVW pass because that gives incorrect values and incorrect results. So I need to render it completely sharp, and then also render out a Z pass so that I could apply DOF in post to the additional layers.

The reason for this post here is that I was wondering if there is any method by which I can render out a Z-Pass that somehow incorporates the focus pull that the Octane camera is doing, so that the keyframed values will match up at the same timing. Obviously I wouldn't expect the radius of the DOF to match, but I just wanted to see if anyone had any clever method of somehow generating a map that allows me to carry forward the Focus animation I did in C4D into compositing.

Make sense?

Thanks!
DinoMuhic
OctaneRender Team
Posts: 194
Joined: Wed Mar 25, 2015 10:24 pm

Why dont you render the z-depth pass with C4D's standard renderer. There the z-depth gradient is created around the cameras focus.
User avatar
aoktar
Octane Plugin Developer
Posts: 16066
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye
Contact:

Octane For Cinema 4D developer / 3d generalist

3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
User avatar
bepeg4d
Octane Guru
Posts: 10352
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy
Contact:

Hi bowserlm,
Z-depth works in meters, so you can insert the exact focus point distance, please, have a look at this picture
Image
ciao beppe
Post Reply

Return to “Maxon Cinema 4D”