On Wed, May 13, 2009 at 1:37 AM, Makc <[email protected]> wrote: > On Tue, May 12, 2009 at 9:44 PM, laurent <[email protected]> wrote: >> >> var newscale:Number = fov / ( fov + z ); >> >> x2d = x*newscale; >> y2d = y*newscale; >> > > I think it's more like newscale = focal_length / z >
in fact, it is focal_length / z if camera is at z = 0, and focal_length / (focal_length + z) if camera is at z = -focal_length. but fov (the angle) has really no place there.
