Author Topic: Z-depth channel based on Camera target  (Read 1805 times)

2016-03-10, 12:48:31

denisgo22

  • Active Users
  • **
  • Posts: 700
    • View Profile
is it possible to make option for Z-depth channel based on Camera target to obtain a similar Z-depth Channel for post process which is used in Corona Camera DOF effect in render??

2016-03-10, 14:44:24
Reply #1

FrostKiwi

  • Active Users
  • **
  • Posts: 686
    • View Profile
    • YouTube
The thing you wish is counterproductive. The values for zdepth are max distance and min distance, in the middle it scales linearly. If you would to bind the target to one of the values, all values beyond the target would get clamped and the result would be wrong in post.

What you wanna do here is extract XYZ for the camera target.

What I did in the past is the following: MaxToAe the pos data of target, in after effects use the toComp expression to get 2D screen space data from 3D xyz. And parent the focus picker to the null with the 2D data.
What you get is post processed DOF, that focuses on the camera target, that you keyframed in Max.

You cannot change zdpeth itself in a meaningful way. That data is not ment for that, instead try to get the data of the focus itself.
I'm 🐥 not 🥝, pls don't eat me ( ;  ;   )

2016-03-10, 16:16:58
Reply #2

denisgo22

  • Active Users
  • **
  • Posts: 700
    • View Profile