depth of field and scaling


#1

I need to calculate what percentage to scale each layer based on it’s distance from zero in z-space. I basically need to have the final image match a PSD I’m using, even though each object is now on it’s own 3d plane in z-space.

Is there an equation to figure that out?


#2

That questions a bit over my head, but i’m wondering if you could use camera projection to get what you’re looking for?


#3

I don’t think so. It’s not really a hallway type effect that I’m trying to create. All the layers are perpendicular to the camera. I just need to get the parallax between each plate, yet keep the same lockups to the PSD.

Anyone else had to do this before?


#4

Ok I did a little calculating. It’s not 100% exact but it’s close enough to work.

I’m using a preset 35mm camera, so I don’t know if this is constant with every other lens measure.

Take one of your objects, push it back in z space as far as you want it to be. Then use this equation to figure out how much to scale it so it matches the flat artwork:

s = (zDepth/18.5)+100

Explaination:

“s” = the value you plug into the scale property
“zDepth” = the value for the objects z-position
“18.5” = just the constant that I found that works for 35mm

Then add 100 since the equation only figured out the change from 100%

Hope that helps.


#5

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.