Return-Path: Received: from mail-pb0-f41.google.com ([209.85.160.41] verified) by media-motion.tv (CommuniGate Pro SMTP 4.2.10) with ESMTP-TLS id 4914999 for AE-List@media-motion.tv; Tue, 04 Dec 2012 06:44:08 +0100 Received: by mail-pb0-f41.google.com with SMTP id xa7so2206519pbc.28 for ; Mon, 03 Dec 2012 21:48:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:mime-version:content-type:subject:date:in-reply-to:to :references:message-id:x-mailer:x-gm-message-state; bh=X0zacK0wVdfBNUWLkbLFI45dJ0cAecVosbbe5oaLZ6o=; b=NQBwxC6x7dkVLH5sFLvsM4mn0K3qjaoeh7fI+6dnbRmITuSSs29SIV7bUanA7b1dbu /t6WjpVfd1u16GXpJvpd/cDY2ZhPwPn7mCXJIj5/lbZR+O272vUwSxArM08quriNKM5M +XJArCrIMbL0AMKeu8TdkO4/roaqUJAifFiBAHZHpIuCkveI8Rp3kRWE8/JuBrF5YSQ0 +lPx8PpchYsfxjVoqhH24opqtM0Bv/QAngB2xTQq9Ceg6DS9VX+pIC5ipUcuLQ+hN3o4 3J6cmG65bTvwewJM5WL3592SgI8mIi2MqLhs/D5XxbBHdA0Rr+UFzixDQksfjN6KGFsy RePw== Received: by 10.68.235.71 with SMTP id uk7mr36086409pbc.10.1354600080879; Mon, 03 Dec 2012 21:48:00 -0800 (PST) Return-Path: Received: from [192.168.1.44] (c-50-131-59-130.hsd1.ca.comcast.net. [50.131.59.130]) by mx.google.com with ESMTPS id p5sm175417paz.22.2012.12.03.21.47.58 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 03 Dec 2012 21:47:59 -0800 (PST) From: Phil Spitler Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: multipart/alternative; boundary="Apple-Mail=_69858949-1584-4E75-9A32-AEA2ACF0A8CB" Subject: Re: [AE] Generate Z-depth pass in AE Date: Mon, 3 Dec 2012 21:47:55 -0800 In-Reply-To: To: "After Effects Mail List" References: Message-Id: <74B02091-EE42-4D09-BBBD-B8F37B84799F@bonfirelabs.com> X-Mailer: Apple Mail (2.1283) X-Gm-Message-State: ALoCoQkr5SMUR5qrn/4b82A2+K6VPT3larRnwvjY8n025w5ai6Z9FtlVRQljb4o0+sBwBbp5HMW5 --Apple-Mail=_69858949-1584-4E75-9A32-AEA2ACF0A8CB Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 This expression is a good work around and I have used it many times in = the past. The issue with it is that each layer can only have one depth value which = is based on it's distance from the camera. If your layer is rotated (typical on Y) then the depth matte for that = layer should be a gradient, not a flat color. Buena Depth does get round this problem I believe. Phil Phil Spitler | Creative Technologist | Bonfire Labs | t : = 415.394.8200 m : 415.571.3139 Website | Facebook | LinkedIn On Dec 3, 2012, at 5:12 PM, jarret langmeire wrote: > 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. >=20 > Thanks again. >=20 > 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. >=20 > Apply the fill effect to each layer, add the following expression to = the colour: >=20 > 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] >=20 > Adjust the near and far as needed. > This isnt perfect but it's a free and fast solution. >=20 >=20 > -Chris >=20 >=20 > -----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 >=20 > 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. >=20 >=20 >=20 > +---End of message---+ > To unsubscribe send any message to >=20 >=20 >=20 > --=20 > -- >=20 > Jarret >=20 --Apple-Mail=_69858949-1584-4E75-9A32-AEA2ACF0A8CB Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=iso-8859-1 This = expression is a good work around and I have used it many times in the = past.

The issue with it is that each layer can only = have one depth value which is based on it's distance from the = camera.

If your layer is rotated (typical on Y) = then the depth matte for that layer should be a gradient, not a flat = color.

Buena Depth does get round this problem = I = believe.

Phil


Phil Spitler  |  Creative = Technologist   |  Bonfire Labs  |  t : = 415.394.8200  m : 415.571.3139

Website | Facebook | 







On Dec 3, 2012, at 5:12 PM, jarret langmeire = wrote:

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 = <chris@chriszwar.com> = 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=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
generate a luminance pass.



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



-- =
--

Jarret


= --Apple-Mail=_69858949-1584-4E75-9A32-AEA2ACF0A8CB--