Mailing List AE-List@media-motion.tv ? Message #46846
From: Chris Zwar <chris@chriszwar.com>
Subject: Re: [AE] Generate Z-depth pass in AE
Date: Mon, 03 Dec 2012 22:50:02 +0000
To: After Effects Mail List <AE-List@media-motion.tv>
I do this a lot so I can integrate Particular / Form with the rest of my comp.

Apply the fill effect to each layer, add the following expression to the colour:

near=0;
far=10000;
cp=thisComp.layer("Camera 1").toWorld([0,0,0]);
lp=thisLayer.toWorld(anchorPoint);
d=length(cp,lp);
d=linear(d,near,far,0,1);
[d,d,d,1]

Adjust the near and far as needed.
This isnt perfect but it's a free and fast solution.


-Chris


-----Original Message-----
From: scott.aelist [mailto:scott.aelist@gmail.com]
Sent: Tuesday, December 4, 2012 09:14 AM
To: 'After Effects Mail List'
Subject: Re: [AE] Generate Z-depth pass in AE

I once asked about this because I wanted to us Frischluft on a scene. I
never tried it, but someone suggested using a light with linear falloff to
generate a luminance pass.


 
Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to ListMaster