Return-Path: Received: from mail-la0-f41.google.com ([209.85.215.41] verified) by media-motion.tv (CommuniGate Pro SMTP 4.2.10) with ESMTP-TLS id 4914862 for AE-List@media-motion.tv; Tue, 04 Dec 2012 02:08:52 +0100 Received: by mail-la0-f41.google.com with SMTP id m15so2386633lah.28 for ; Mon, 03 Dec 2012 17:12:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=yrXIqou1JWlLSeKt2QuLtalWoWxabPHWWfA+ad8wZ6o=; b=Jw2xCi8jH/L5Bgr9DrnwWBQpxzP5PPlOb/OG6epf+n5bAhZXMGr2ZwAlWgNzHt/lQY +GKhFiv+XEQ+YMcKSwNSOtRzi0YXATPlhbSoy8PsszCdel0uaccjJqgAfdF1U8UaUDJB F9m56hFUSEXf+S/Tg0WbEkDXa11mhWmuFsDdg3XM4eMRdZk9bvvdYoCG9Fz/YUx1byuH 2aPhBKkY8Ha1zZiWgSOt0Fge9Qhqfs91yvvJx4nKrL9m7nbhFCu7roYbZ7VfK2WfJt+e SGxsa5hDROyXEVrxJNOZ+8w1sOf+g/pDbybtHCFaloXEyJnCyKnU+x6BzsOsLN0FNO5G xhVQ== MIME-Version: 1.0 Received: by 10.152.148.40 with SMTP id tp8mr11313300lab.30.1354583566128; Mon, 03 Dec 2012 17:12:46 -0800 (PST) Received: by 10.112.136.131 with HTTP; Mon, 3 Dec 2012 17:12:46 -0800 (PST) In-Reply-To: References: Date: Tue, 4 Dec 2012 12:12:46 +1100 Message-ID: Subject: Re: [AE] Generate Z-depth pass in AE From: jarret langmeire To: After Effects Mail List Content-Type: multipart/alternative; boundary=e89a8f23466547153304cffc9054 --e89a8f23466547153304cffc9054 Content-Type: text/plain; charset=ISO-8859-1 Awesome, Chris, thanks for that. I was trying to use Buena Depth Cue's depth but for some reason I've been unable to get it working. So yea, will definitely try your expression. Thanks again. On 4 December 2012 09:50, Chris Zwar wrote: > 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. > > > > +---End of message---+ > To unsubscribe send any message to > -- -- Jarret --e89a8f23466547153304cffc9054 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Awesome, Chris, thanks for that. I was trying to use Buena Depth Cue's = depth but for some reason I've been unable to get it working. So yea, w= ill definitely try your expression.

Thanks again.

On 4 December 2012 09:50, Chris Zwar <chr= is@chriszwar.com> wrote:
I do this a lot so I can integrate Particular / Form with the rest of my co= mp.

Apply the fill effect to each layer, add the following expression to the co= lour:

near=3D0;
far=3D10000;
cp=3DthisComp.layer("Camera 1").toWorld([0,0,0]);
lp=3DthisLayer.toWorld(anchorPoint);
d=3Dlength(cp,lp);
d=3Dlinear(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<= br> generate a luminance pass.



+---End of message---+
To unsubscribe send any message to <ae-list-off@media-motion.tv>



--
--

<= /div>
Jarret

--e89a8f23466547153304cffc9054--