Page 1 of 1

turning layers in blanck and white according to the Z positi

Posted: February 11th, 2009, 6:53 am
by olivier28
Hello,

I'd like to transform all the comp of a projet in render where the layers are white when they're close to the camera and black when they're far away (with all the gray scale between). It's working if I'm using the tint filter and ajusting the parameters by hand but I'm sure that it's possible to do it simply with expression ou script. May be just something that could change the tint according the Z position (from white to black) or ajusting the transparency (in this case I could change the background to black).

Does someone as a solution ?

thanks (and sorry for my poor english :-) )

Olivier

Re: turning layers in blanck and white according to the Z positi

Posted: February 11th, 2009, 7:13 pm
by Yenaphe
A few weeks ago, Andrew Kramer posted a presset on his website that does what you want.

http://www.videocopilot.net/tutorials/3d_falloff/

But the basic idea would be to create a simple expression that gets the distance of your layers anchor points to the camera, and then do a linear between your min-max values to 0-100 value of your tint.