-
Photoshop layers to 3D, scaled to look 2D…
Hi.
I’ve had a look around and there are some pointers to a solution to this (so many people seeking the same info!). But no matter what, I can’t quite get this to work.
What I need to do is very simple – import a Photoshop layered document and ‘spread’ it into z space – I have this already: z position * (thisLayer.index * dXbetweenLayers). This pushes the layered document into the 3D scene, with the topmost layer z = 0. So far so good. The Photoshop document looks crazy of course as it’s broken up and deepest layers are furthest away…
Now what I really want is to be able to scale up the layers respectively so that from the camera viewpoint it looks exactly as it does in 2D, so that when I pan the camera it fractures up etc. So I need an expression for scale which relates z position to scale, based on the camera focal length (I think).
The maths for this must be simple! I’ve been trying to resolve it but to no avail. Is it an inverse square law? Does it relate to the focalLength of the camera, in mm????. Can anyone help?
Regards, Paul.