[Papervision3D] My attempt at a carousel

David Harris djohnsmarie at gmail.com
Tue Apr 3 16:06:03 EDT 2007


Hi John,

Thanks for that, it works perfectly!


On 4/4/07, John Grden <neoriley at gmail.com> wrote:
> mabye you could create a dumby object in the middle and tell the planes to
> look at it?
>
> scene.addChild(new DisplayObject3D("center"));
>
> ...  then with your planes:
>
> var obj:DisplayObject3D = scene.getChildByName ("center");
> plane.lookAt(obj);
>
> this is completely off the top of my head, and you might have to reverse the
> image textures so they're not backwards, but it's alot easier than doing the
> math ;)
>
>
> On 4/3/07, David Harris <djohnsmarie at gmail.com> wrote:
> >
> > Hi Every one,
> >
> > I am attempting to create a carousel with PaperVision.
> >
> > If you look at
> http://www.harrisfamily.net.nz/devblog/enclosures/carousel1.swf
> > you can see how far I am.
> > The problem I am wanting to fix is when you view that, the far left
> > and far right are not correct, and are flapping round a bit, not
> > staying facing directly away from the center.
> >
> > in the rendering function I have the code to set the rotation values:
> >
> > planeArray[i].plane.rotationY =  rotationRadians * 180 / Math.PI;
> >
> > planeArray[i].plane.z = radius * Math.cos(rotationRadians) * -1;
> > planeArray[i].plane.x = (radius * Math.sin(rotationRadians))* -2;
> >
> >
> > where "i" is the position in the array
> >
> > I am very newbie to this, so am I missing something obvious?
> >
> > thanks,
> >
> > David
> >
> > _______________________________________________
> > Papervision3D mailing list
> > Papervision3D at osflash.org
> >
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> >
>
>
>
> --
> [  JPG  ]
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>



More information about the Papervision3D mailing list