Jump to content

Camera follow or 'pull' focus example


Recommended Posts

Ok

So I understand that now we are using the new constraints for 'Loot At' and Follow path.

But what if you need to pull focus as well using a shallow DOF.

How is this accomplished?

 

Can anyone possibly share an example(camera on path + pull focus) ?

 

A simple checkbox under the Sampling tab  labeled  'Focus on Look At Object' would be the simplest solution!

 

A search here on odforce turned up this thread which suggests a convoluted python script as the only solution.

Further searching on the forums turns up this expression for Focus Distance
 

abs(vtorigin("/obj/cam1", "/obj/focus_follow")[2])

but when I try my camera renders nothing!

Can anyone suggest what might be wrong?

Edited by art3mis
Link to comment
Share on other sites

That expression should work fine, but bear in mind that will place the focus of the camera at the centroid of the follow object, which isn't how we usually focus on things, so you might want to subtract a slight value from the result to shift the focus distance more in line with the nearest face of the object. 

You can check where the focus distance is by hitting Z when you have your camera transforms active in the viewport - This brings up the focus handles. You can also right click and select focus handle there. Oddly when you have a camera lookat constraint it doesn't orient the focus handle with the look direction of the camera which makes visualizing it a bit tricky - Not sure if there is a fix for this or if you'll just have to do spot renders and check focus. 

 

Follow_focus_01.hip

  • Like 2
Link to comment
Share on other sites

  • 8 months later...
  • 4 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...