Hi!

Zoom and focus usually work together to get you the desired perspective, so
you usually have to muck with both of them, until you get what you want it
to look like.

I wouldn't rely on zoom or focus to move the camera away, if that is your
intention. I would just simply move the camera away farther away.

-Pete


On Tue, May 24, 2011 at 1:51 PM, Miroku <[email protected]> wrote:

> Hi everyone,
> I have this zoom function:
>
> public function zoomCamera(amount:Number):void
> {
>        if (camera.zoom + amount > 0)
>                camera.zoom += amount;
>        else
>                camera.zoom = 1;
>
>        if (camera.focus + amount > 0)
>                camera.focus += amount;
>        else
>                camera.focus = 1;
> }
>
> and it works perfectly while the camera is in this position:
> http://dl.dropbox.com/u/4064417/Camera1.jpg
>
> But once I take it to this position:
> http://dl.dropbox.com/u/4064417/Camera2.jpg
>
> and try to zoom back, I get this effect:
> http://dl.dropbox.com/u/4064417/BadZoom.jpg
>
> Why does this happen? Is there a problem with the focus or the zoom?
> Or both?




-- 
___________________

Actionscript 3.0 Flash 3D Graphics Engine

HTTP://AWAY3D.COM

Reply via email to