Mailing List AE-List@media-motion.tv ? Message #52651
From: Teddy Gage <teddygage@gmail.com>
Subject: Re: [AE] distribute layers in Z space - but keep "relative" positions
Date: Thu, 23 Jan 2014 18:37:53 -0500
To: After Effects Mail List <AE-List@media-motion.tv>
Cinema 4D also offers ways to project an image map onto 3D surfaces. Might be an easier way to do it in the long run, and probably how those great channel 4 spots were done. I was playing around in the AE raytracer and sadly it doesn't allow colored shadows or lights through refractive objects, at least that I could figure out. It would be cool if you could shine a video texture through transparent objects onto other layers. Especially if it was volumetric...


On Thu, Jan 23, 2014 at 6:29 PM, Nathan Shipley <nshipley@gmail.com> wrote:
Try throwing this expression on a 3D layer's scale property with a camera in your scene named "Camera 1"

camZ = thisComp.layer("Camera 1").position[2] * -1;
layerZ = position[2];
scaler = (1/(camZ / layerZ)) * 100 + 100;
[scaler, scaler, scaler]

When you move the layer around in Z, it'll scale to appear the same size from the camera's point of view.  Then create another camera that you animate -- when the second camera matches position with the original camera, all your objects will line up.

I made this a long time ago, but if I recall correctly, it may be off if you use a camera that isn't 50mm, but it should get you started at least!  There's probably a more elegant way to do this that Dan Ebberts has already figured out.  ;)

 - Nathan


On Thu, Jan 23, 2014 at 3:16 PM, Rachel Max <rachelmax@mac.com> wrote:
Hi again, in the vein of the anamorphic illusions - is there a script or trick to affect the Z of a layer, but have it appear as if it hasn’t moved by scaling it and changing it’s position?

I’ve been eyeballing it but that has to be an easier way or some math I can do.

Thanks,
Rachel





--
_____________________________
VFX & Motion Graphic Artist
teddygage dot com
 
Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to ListMaster