[Papervision3D] Independently rotating a plane

Pedro Furtado pedro.furtado at gmail.com
Mon Feb 11 07:38:32 PST 2008


Hum, i use Flex Builder as my AS3 IDE, but i suppose that you can set it as
the main class of your .fla file.
If not you can always just take the methods you need. :)

On 2/11/08, Brett Meyer <brett at dsdsn.com> wrote:
>
> Hi Pedro
>
> Thanks this sounds promosing, probably a stupid question though - I've
> downloaded your .as file, how do I include it in a fla and compile and run?
> Sorry I've never worked with external as files before.
>
> Cheers
>
> On 11 Feb 2008, at 4:17 PM, Pedro Furtado wrote:
>
> http://www.dreaminginflash.com/2007/07/31/carrousel-how-to/
>
> You can use a similar function to what we use there, just need to rotate
> them ;)
>
> On 2/11/08, citizenerazed <brett at dsdsn.com> wrote:
> >
> >
> > I am completely new to Papervision.
> >
> > I have got the code below to add multiple planes to a scene and position
> > them randomly on all axis and random Y rotation.
> >
> > What I need to do is add an on enter frame event to each plane so that I
> > can
> > change the y rotation of each plane depending on the position of the
> > mouse.
> >
> > I found a demo that adds mouse events (rollover, rollout, click)
> > functionality but I need onenterframe and being able to get the plane
> > reference so I can manipulate it at runtime.
> >
> > Thanks in advance.
> >
> >
> > import org.papervision3d.scenes.*;
> > import org.papervision3d.cameras.*;
> > import org.papervision3d.objects.*;
> > import org.papervision3d.materials.*;
> >
> > var container:Sprite = new Sprite ();
> > container.x = stage.stageWidth * 0.5;
> > container.y = stage.stageHeight * 0.5;
> > addChild (container);
> >
> > var scene:Scene3D = new Scene3D (container);
> > var camera:Camera3D = new Camera3D ();
> >
> > camera.zoom = 30;
> >
> > var bam:BitmapAssetMaterial = new BitmapAssetMaterial ("TakIcon");
> > bam.oneSide = false;
> > bam.smooth = true;
> >
> > for (var i:uint=0; i<50; i++) {
> >         var p:Plane = new Plane (bam, 100, 100, 2, 2);
> >         scene.addChild (p);
> >         p.x = Math.random () * 1000 - 500;
> >         p.y = Math.random () * 1000 - 500;
> >         p.z = Math.random () * 1000 - 500;
> >         p.rotationY = Math.random () * 360;
> > }
> >
> > scene.renderCamera (camera);
> > --
> > View this message in context:
> > http://www.nabble.com/Independently-rotating-a-plane-tp15306311p15306311.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
> >
>
>
>
> --
> Pedro Furtado
> http://www.dreaminginflash.com_______________________________________________
> 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
>
>


-- 
Pedro Furtado
http://www.dreaminginflash.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20080211/f7871d16/attachment.html 


More information about the Papervision3D mailing list