Thank you all, this works but doesn't completely give me the effect i
need.
Only thing that is missing is camera zoom.
I Tween ObjectContainer3D from one place to another - the camera
follows just fine, but i need to somehow change camera zoom smoothly,
because i switch camera from one big element (planet)  to smaller one
(house)
Camera Tweens smoothly, but any suggestions with zoom ?
Thank you once again !

On 21 dec., 16:18, Pierre Karadia <[email protected]> wrote:
> I agree it definetly works, you can use something like this:
>
> // imports for TweenMax engine
>     import com.greensock.TweenMax;
>     import com.greensock.easing.*;
>     import com.greensock.plugins.*;
>
> // setup debug turn off for production
>
> var debug:Boolean = true;
>
> // setup hoverCam
> var hoverCam:HoverCamera3D = new HoverCamera3D();
>
> // setup tracking object - does not need to be a cube it can be anything..
>
> var trackingItem:Cube = new Cube();
> // set tracking item size, again can be anything you want customise it
> to suit
>
> trackingItem.width = trackingItem.depth = trackingItem.height = 5;
> trackingItem.x = 0;
> trackingItem.y = 0;
> trackingItem.z = 0;
>
> trackingItem.alpha = 0;
>
> // for debugging
> if (debug) {
> trackingItem.alpha = 1;
>
> }
>
> // set the camera target
> hoverCam.target = trackingItem
>
> // dont forget to customise Tween for whichever tween engine you are
> using, example shown here uses TweenMax
> // you can use any of the easing functions from tween library
> // TweenMax.to(OBJECTtoTween, tweenDuration, {properties to tween....});
> TweenMax.to(trackingItem, 1, {x:100,y:100, z:100, ease:Quart.easeOut});
>
> try that and see how it goes.
>
> cheers
>
> Pierre
>
>
>
> Michael Iv wrote:
> > I can think right now about following solution:
> > Try to make a kind of dummy object that is even invisible ,then tween
> > it from one target to another when you
> > wanna switch them . And the HoverCam target set on this dummy object .
>
> > On Mon, Dec 21, 2009 at 3:31 PM, Valts Darznieks <[email protected]
> > <mailto:[email protected]>> wrote:
>
> >     Hello !
> >     I`m trying to make smooth camera transition with HoverCamera3D.
> >     Could someone please give me some hints or link to tutorial how can i
> >     change target of HoverCamera3D smoothly.
> >     Thank you !
>
> > --
> > Michael Ivanov ,Programmer
> > Neurotech Solutions Ltd.
> > Flex|Flash |Air |Games|OS|
> > Tel-0526237969
> > [email protected] <mailto:[email protected]>
> > [email protected] <mailto:[email protected]>

Reply via email to