[Papervision3D] RE : Re: RE : Camera rotaion arround an object

James Acres - AG james at anonymousgroup.com
Wed Jun 20 18:53:50 EDT 2007


I was thinking the same thing - an optional axis to pass on. If not  
passed in, the object could default to rotating around its center.  
That would be great!

James

On 20-Jun-07, at 6:31 PM, Dustin Sparks wrote:

> Maybe rotation would be easier if camera.rotation were a method  
> that takes an Axis Object. Then maybe the objects on stage could  
> have functions that return their Axis as an Axis object. The  
> camera.rotation could rotate around a given axis, if none is given,  
> then use the default axis (the cameras axis)..
>
> I thought about writing an Axis3D class and modifying FreeCamera3D  
> to use it for rotation.
>
> I think this sounds legible? If nothing else, it'd be a useful  
> addition to the project at least. I dont really know how the  
> rotation works, it could very well be impossible.
>
> On 6/20/07, ricardo cabello ! mr.doob <info at mrdoob.com> wrote:
> Yeah, very clever trick :)
>
> --
> Ricardo Cabello ~ Mr.doob
> Designer + Developer
>
> Web: http://mrdoob.com
> RSS feed: http://mrdoob.com/rss.php
> MSN/AIM: info at mrdoob.com
>
>
> On 6/20/07, Peter Kapelyan <flashnine at gmail.com> wrote:
> > Yes
> > http://www.flashnine.com/?p=23
> > camera.x=camera.y=camera.z=0;
> > camera.yaw(container.mouseX/8);
> > camera.moveBackward(container.mouseY/1+1000);
> >
> > See camera rotates around 0, (can be any x,y,z)
> >
> > Thank you!
> >
> > -Pete
> >
> >
> >
> > On 6/20/07, Moon Moon <moon_pv3d at yahoo.fr> wrote:
> > > Thinks for your message, but this doesn't work. Actually the  
> view of the
> > camera changes. I mean the camera is fixed !!!!!! then the camra  
> is rotated,
> > like you are taking u cup of tea and rotate it. But i want is  
> that the camer
> > moves around an object. The cup of tea is FIXED (which is the  
> object) and
> > you rotate your head arround it ! Do you see ?
> > >
> > > Peter Kapelyan <flashnine at gmail.com> a écrit :
> > >
> > >
> > > http://www.flashnine.com/?p=23
> > > Here is easy way without math! .FLA and .AS included.. :)
> > > -Pete
> > >
> > >
> > > On 6/20/07, Moon Moon < moon_pv3d at yahoo.fr> wrote:
> > > >
> > > >
> > > > Hello, I have an object in my scene, I am using FreeCamera3D,  
> I would
> > like to turn around the object like making a circle arround my  
> object.
> > > > I tried many things :
> > > > camera.rotationX , camera.RotationY, camear.rotationZ, but  
> the problem
> > is that incrementing these values changed the camera views, I  
> mean the
> > camera rotates but not arround the object !
> > > >
> > > > I think that what I have to do is giving for the camera a  
> mouvement of a
> > circle but I don't know really how to do !
> > > >
> > > > i know that the equation of a circle is comething like:
> > > >
> > > > (x-a)^2 + (y-b)^2 + (z-c)^2 = R^2 , but I dont know really  
> how to do it
> > with the camera coordonates !
> > > >
> > > > Can someone help me please ?
> > > >
> > > > PS: the aim is to turn arround an object so if you have  
> another solution
> > it will be ok as well thinks.
> > > > ________________________________
> >  Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers  
> Yahoo!
> > Mail
> > > >
> > > >
> > > > _______________________________________________
> > > > Papervision3D mailing list
> > > > Papervision3D at osflash.org
> > > >
> > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> > > >
> > > >
> > >
> > > _______________________________________________
> > > Papervision3D mailing list
> > > Papervision3D at osflash.org
> > >
> > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> > >
> > >
> > >
> > > ________________________________
> >  Découvrez une nouvelle façon d'obtenir des réponses à toutes vos  
> questions
> > ! Profitez des connaissances, des opinions et des expériences des
> > internautes sur Yahoo! Questions/Réponses.
> > >
> > >
> > >
> > >
> > > _______________________________________________
> > > Papervision3D mailing list
> > > Papervision3D at osflash.org
> > >
> > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> > >
> > >
> >
> >
> > _______________________________________________
> > Papervision3D mailing list
> > Papervision3D at osflash.org
> > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>
>
> -- 
> Dustin Sparks
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20070620/d6cec089/attachment.htm


More information about the Papervision3D mailing list