Morph Camera

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

Moderators: ChrisHekman, aoktar

Post Reply
madmandrax_1
Licensed Customer
Posts: 8
Joined: Tue Nov 03, 2020 6:05 pm

Hi,

where do I have to attached the Octane camera tag, when I use a morph camera? The cameras to blend have different focal depths, the second one uses a target object. Thanks in advance for any help.
frankmci
Licensed Customer
Posts: 917
Joined: Fri May 26, 2017 2:00 pm
Location: Washington DC

As I understand it, the C4D Camera Morph tool does not have direct access to all the Octane Camera data channels, so if you want the Camera Morph to drive attributes other than the spatial transformations, you need to do a little XPresso work to set it up. It should be pretty straight forward to use the CameraMorph tag's Blend attribute to drive a blend between the Focal Depth outputs of the Octane Camera nodes on each of the source cameras, then pass the results into the rendering Morph Camera. That way, the same Morph will drive both the spatial transform and the focal change in unison.
Animation Technical Director - Washington DC
madmandrax_1
Licensed Customer
Posts: 8
Joined: Tue Nov 03, 2020 6:05 pm

Thanks. Looks like its a bit easier. In Xpresso you can fetch the Focus Distance parameter directly from the Morph Camera and send it to the Octane camera tag (attached to the Morph Camera).
michael.o'sullivan
Licensed Customer
Posts: 26
Joined: Wed Apr 29, 2015 9:22 am
Contact:

Just reviving this old post, can anyone shed any light on the setup for this?
Im trying to morph between multiple cameras, that have varying focal depths on the octane tag, but the morph camera does not see these.
Can anyone shine some light on the xpresso rig that was mentioned above?
Win 7 64-Bit | Geforce GTX980 & GTX750Ti | i7 5820k | 32GB RAM
frankmci
Licensed Customer
Posts: 917
Joined: Fri May 26, 2017 2:00 pm
Location: Washington DC

michael.o'sullivan wrote:Just reviving this old post, can anyone shed any light on the setup for this?
Im trying to morph between multiple cameras, that have varying focal depths on the octane tag, but the morph camera does not see these.
Can anyone shine some light on the xpresso rig that was mentioned above?
This may not be the most elegant solution, but it works for me.

The issue is that the C4D Camera Morph Tag does not have access to the Octane Camera Tag attributes, just the standard C4D Camera attributes. To get around this, I feed the Focal Depth from both source Octane Camera Tags into a Mix node. The mix node is driven by the Blend value of the C4D Morph Cam Tag. The output of that Mix Node then goes into the Focal Length of the Octane Morph Camera Tag.

Another way to say it is that while the C4D Morph Camera is still handling all the 3D transformations, the ExPresso Tag is taking the Blend information from the C4D Morph Cam, mixing the Octane attributes the C4D Morph Cam can't access, then feeding the results to the Octane Camera Tag on the Morph Cam.

I hope that makes sense.
Attachments
C4D Cam Morph with Octane DOF
C4D Cam Morph with Octane DOF
Animation Technical Director - Washington DC
jayroth2020
OctaneRender Team
Posts: 488
Joined: Mon May 04, 2020 7:30 pm

Nice, Frank!
Puget Systems / Intel Core Z790 ATX / RTX 4090 / Cinema 4D
frankmci
Licensed Customer
Posts: 917
Joined: Fri May 26, 2017 2:00 pm
Location: Washington DC

I was thinking about this last night. I usually only use two cameras for basic camera morph moves and that setup I shared works fine, but for multiple cameras, or even just two, there's a different way that's much more elegant: just use Driven Keys.

Set each target camera's Octane Tag Focal Depth as the Driver for the same camera's C4D Focus Distance. Let the Morph Camera do it's normal job, but then reverse the Driver/Driven relationship on it so that the C4D Focus Distance of the Morph Camera is driving the Octane Camera Tag's Focal Depth.

TargetCam01 - OctCamTag Focal Depth >>> CameraObject Focus Distance
TargetCam02 - OctCamTag Focal Depth >>> CameraObject Focus Distance
TargetCam03 - OctCamTag Focal Depth >>> CameraObject Focus Distance
TargetCam... etc.
MorphCam - CameraObject Focus Distance >>> OctCamTag Focal Depth

Very clean, and works on as many cameras as you like.

Later... Rereading this thread, I realize that's exactly what madmandrax_1 was saying back in 2021. :oops:
Animation Technical Director - Washington DC
Post Reply

Return to “Maxon Cinema 4D”