turning layers in blanck and white according to the Z positi

Moderators: Disciple, zlovatt

Post Reply
olivier28
Posts: 1
Joined: February 11th, 2009, 4:26 am

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
Yenaphe
Posts: 84
Joined: February 3rd, 2009, 6:30 pm
Location: Paris - France
Contact:

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.
Post Reply