[Papervision3D] My attempt at a carousel

John Grden neoriley at gmail.com
Tue Apr 3 12:01:07 EDT 2007


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  ]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20070403/bb0980e4/attachment.htm


More information about the Papervision3D mailing list