[Papervision3D] How to get the sides of the cube to react on mouse?

John Lindquist johnlindquist at gmail.com
Mon Jan 7 12:54:46 PST 2008


This is probably more of a "hack", but have you tried just arranging 6
planes into a cube formation?

On Jan 7, 2008 1:23 PM, John Grden <neoriley at gmail.com> wrote:

> yeah I think both ideas are good Patrick, the local conversion is on my
> todo's and I think passing along a reference to the material makes alot of
> sense as well since ISM is the one that generates the event dispatch
>
>
> On Jan 7, 2008 1:53 PM, Patrick Matte | BLITZ <PMatte at blitzagency.com>
> wrote:
>
> >  You could try to make a different material for each side and modify the
> > InteractiveSceneManager so that when it dispatches the
> > InteractiveScene3DEvent, it also gives you the name or the instance of the
> > material.
> >
> >
> >
> > Or, you could also create a different material for each sides, but
> > instead of using InteractiveScene3DEvent, use movieclips and add a normal
> > MouseEvent on the MovieClip itself. The interactiveSceneManager will
> > dispatch all the MouseEvents to the movieclips. Also, be careful that the
> > movieclips you use as movieMaterials are located at 0,0 on the stage.
> >
> >
> >
> > John, what do you think? Could the material name be added to the
> > InteractiveScene3DEvent? It seems like adding that localToGlobal function on
> > the VirtualMouse setPosition is a good idea cause I'm sure many people are
> > gonna run into that problem.
> >
> >
> >
> >
> >
> > *BLITZ | Patrick Matte* 310-551-0200 *x214*
> >
> > *From:* papervision3d-bounces at osflash.org [mailto:
> > papervision3d-bounces at osflash.org] * On Behalf Of *Irene Johansson
> > *Sent:* Monday, January 07, 2008 2:42 AM
> > *To:* papervision3d at osflash.org
> > *Subject:* [Papervision3D] How to get the sides of the cube to react on
> > mouse?
> >
> >
> >
> > Hello everyone!
> > I have started messing with papervision3d and i am really impressed.
> >
> > I have played with some cube examples, and had a few problems.
> >
> > I managed to get cube as whole to react to my mouse using EventListenrs.
> >
> >
> > cube.addEventListener(InteractiveScene3DEvent.OBJECT_CLICK,
> > handleClick);
> > cube.addEventListener(InteractiveScene3DEvent.OBJECT_OVER,
> > onMouseOverHandler);
> > cube.addEventListener(InteractiveScene3DEvent.OBJECT_OUT ,
> > onMouseOutHandler)
> >
> > But i am not sure how to get the sides of the cube to react to the
> > mouse. (top,bottom,left....).
> >
> > Any help appreciated :)
> >
> > (using Great White)
> >
> > Thanks,
> > Irene
> >
> >
>
>
> --
> [  JPG  ]
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>


-- 
~~~~~~~~~~
John Lindquist
http://pv3d.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20080107/bb61e287/attachment.html 


More information about the Papervision3D mailing list