[Papervision3D] My attempt at a carousel

David Harris djohnsmarie at gmail.com
Tue Apr 3 04:35:31 EDT 2007


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



More information about the Papervision3D mailing list