[Papervision3D] Animating camera to target
Gordon Everett
gordee at hotmail.co.uk
Tue Jun 23 08:49:20 PDT 2009
if you play around with the z value(s) you should be able to achieve it.
Regards
Gordon Everett
My preferred email address: gordon.everett2 at gmail.com
My Blog: http://flashgordonmedia.blogspot.com/
> Date: Tue, 23 Jun 2009 08:41:52 -0700
> From: e_account at mac.com
> To: papervision3D at osflash.org
> Subject: Re: [Papervision3D] Animating camera to target
>
>
> The code you suggested doesn't seem to give the effect I'm looking for. Maybe
> I can try and explain this a little better.
> I have 20 planes all moving back in z depth. All I want to do is move my
> camera through them as I click on the next plane. So if I click on plane 2
> the camera will fly through plane 1 and show plane 2 and as I click on the
> next it flys through the next plane.
>
>
>
> gordee wrote:
> >
> >
> > If I have understood what you are trying to do, then try this;
> > interactiveScene3DEvent.target is the plane clicked on;
> >
> > var xpos:Number = iS3DEvent.target.x - iS3DEvent.target.width/2;var
> > ypos:Number = iScene3DEvent.target.y - iS3DEvent.target.height/2;
> > zpos:Number = iScene3DEvent.target.z - 100;
> >
> > Tweener.addTween(camera, {x:xpos, y:ypos, :z:zpos, time:1});
> > hth
> >
> > Regards
> > Gordon Everett
> >
> > My preferred email address: gordon.everett2 at gmail.com
> >
> > My Blog: http://flashgordonmedia.blogspot.com/
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >> Date: Mon, 22 Jun 2009 22:18:15 -0700
> >> From: e_account at mac.com
> >> To: papervision3D at osflash.org
> >> Subject: [Papervision3D] Animating camera to target
> >>
> >>
> >> I have 20 planes positioned with z spacing what I'm trying to do is move
> >> the
> >> camera through all my planes as the user clicks on each plane. I'm trying
> >> to
> >> figure out how to do that. I tried setting the camera target to the
> >> clicked
> >> plane but that didn't work. I just want to tween the camera through each
> >> plane like a fly through.
> >>
> >> Any ideas please.
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Animating-camera-to-target-tp24158838p24158838.html
> >> Sent from the Papervision3D mailing list archive at Nabble.com.
> >>
> >>
> >> _______________________________________________
> >> Papervision3D mailing list
> >> Papervision3D at osflash.org
> >> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> >
> > _________________________________________________________________
> > Get the best of MSN on your mobile
> > http://clk.atdmt.com/UKM/go/147991039/direct/01/
> > _______________________________________________
> > Papervision3D mailing list
> > Papervision3D at osflash.org
> > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> >
> >
>
> --
> View this message in context: http://www.nabble.com/Animating-camera-to-target-tp24158838p24167340.html
> Sent from the Papervision3D mailing list archive at Nabble.com.
>
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
_________________________________________________________________
Get the best of MSN on your mobile
http://clk.atdmt.com/UKM/go/147991039/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20090623/752650ad/attachment.html>
More information about the Papervision3D
mailing list