Auto focus Dampening

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

Moderators: ChrisHekman, aoktar

zackyd
Licensed Customer
Posts: 64
Joined: Sat May 17, 2014 7:56 pm

Any thoughts on being able to dampen the focus racking on the Octane camera tags autofocus?
Can anyone think of a way of recreating this effect in xpresso so some dampening could be manually applied to the focus distance?


Thanks!

Z
4x GTX 780 6gb // 32gb ram // 1600w
User avatar
ChrisMills
Licensed Customer
Posts: 61
Joined: Mon Apr 13, 2015 9:33 am
Location: Auckland, New Zealand
Contact:

Turn off autofocus in the Octane Camera tag.

Use a null in the Focus Object of the normal Cinema4D camera controls.
zackyd
Licensed Customer
Posts: 64
Joined: Sat May 17, 2014 7:56 pm

I left out some information. I love the autofocus feature of Octane and was hoping to replicate it with dampening. I am trying not to key frame anything and the autofocus is perfect except that it snaps focus too fast.

Z
4x GTX 780 6gb // 32gb ram // 1600w
User avatar
aoktar
Octane Plugin Developer
Posts: 16066
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye
Contact:

it's not possible because it's a renderer and have one frame data each time. You should simulate it by some xpresso or key frames.
Octane For Cinema 4D developer / 3d generalist

3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
zackyd
Licensed Customer
Posts: 64
Joined: Sat May 17, 2014 7:56 pm

Ya I figured it was not possible with the Octane autofocus. For anyone savvy out there with xpresso, any pointers on how to measure a distance from an object (the camera) to any object that passes into the "z" vector (center of the FOV of the camera)? I get how to get distance between 2 objects but they must both be defined. Thanks everyone for the responses.

Z
4x GTX 780 6gb // 32gb ram // 1600w
User avatar
ralf_breninek
Licensed Customer
Posts: 88
Joined: Fri Mar 22, 2013 8:33 pm
Location: Germany Cologne / Köln
Contact:

You can get the distance via the xpresso distance node
I did a small example scene but somehow it does not work currently, maybe I have overlooked something, because I know I did it that way before and it worked. Although you only need it for the Octane Camera Tag I guess. I am on 3.03.2-R4 BTW
focus.zip
(25.35 KiB) Downloaded 112 times
focus.png
C4D R21.207 / Octane for C4D 2020.2.4 / Watercooled 4 x EVGA Geforce RTX 2080 ti
http://www.pixelasm.com
Interface and motion graphics design for interactive interfaces and animations on TV, web, mobile and automotive from Köln / Cologne Germany
zackyd
Licensed Customer
Posts: 64
Joined: Sat May 17, 2014 7:56 pm

Thanks for the response. I know how to to get distances between two defined objects. What I am trying to figure out is how to reproduce an "autofocus" which does not need a defined "target" like the standard Xpresso distance node requires.
I am looking to make a range finder that will tell the distance of any object that comes in line with the Z vector of the camera. Thanks.
4x GTX 780 6gb // 32gb ram // 1600w
User avatar
ralf_breninek
Licensed Customer
Posts: 88
Joined: Fri Mar 22, 2013 8:33 pm
Location: Germany Cologne / Köln
Contact:

Ah sorry, my bad I overread that part with the "object crossing the Z vector of the camera" :(
C4D R21.207 / Octane for C4D 2020.2.4 / Watercooled 4 x EVGA Geforce RTX 2080 ti
http://www.pixelasm.com
Interface and motion graphics design for interactive interfaces and animations on TV, web, mobile and automotive from Köln / Cologne Germany
gohmn
Licensed Customer
Posts: 15
Joined: Thu Oct 09, 2014 5:13 pm

Sorry to necro this post. But did you ever find a solution in xpresso for this? I'm trying to do the exact same thing now.
frankmci
Licensed Customer
Posts: 917
Joined: Fri May 26, 2017 2:00 pm
Location: Washington DC

I was thinking, "Why not bake the auto focus then apply a simplify and smooth function to the resulting curve?" Then I looked and realized that the Focal Depth attribute is not only inaccessible when Auto Focus is on, its current, Octane driven value isn't even available to Xpresso. It would be nice if the Octane passed the Focal Depth data back to the host app for further reference or manipulation.
Animation Technical Director - Washington DC
Post Reply

Return to “Maxon Cinema 4D”