[Papervision3D] Clicking through transparent areas of a plane
toby
pv3d at eplay.de
Wed May 7 02:05:07 PDT 2008
I get your point.
So, if I did manage to check whether the pixel the mouse is hitting is
transparent, I could just treat the object as though it had mouseEnabled
set to false?
I am looking at line 608 of VirtualMouse.as
// define target if an InteractiveObject
// and mouseEnabled is true
if (!currentTarget && currentParent is
InteractiveObject && InteractiveObject(currentParent).mouseEnabled)
{
//log.debug("found InteractiveObject &&
mouseEnabled = true - setting currentTarget");
currentTarget = InteractiveObject(currentParent);
}
Bye,
Toyb
> no, you clicked through a mouseEnabled=false object through
> a mouseEnabled = true object. in pv3d all you have is one bitmap, and
> if your top object is clicable your lower one won't, transparent or not.
>
> On 5/7/08, *toby* <pv3d at eplay.de <mailto:pv3d at eplay.de>> wrote:
>
> But not entirely true. Clicking through an imported PNG and reaching a
> movieclip on a layer below is no problem at all. Or one loaded at
> runtime, for that matter...
>
> Toby
>
> > good point!
> >
> > On Tue, May 6, 2008 at 11:39 PM, Pedro Furtado <pedro.furtado at
>
> gmail.com <http://gmail.com>>
> > wrote:
> >
> > > nor does flash. try clicking through a the transparent part
> of any
> object.
> > >
> > >
>
> > > On Tue, May 6, 2008 at 6:30 PM, James Hay <jimmyhay at
> gmail.com <http://gmail.com>>
>
> wrote:
> > >
> > > > You'll have to edit the Interactive scene 3d Manager class to
> deal with
> > > > these custom interactions that you're trying to create, ie by
> hacking it in
> > > > some way. Papervision doesn't have this functionality
> built into it.
> > > >
> > > > jimmy.
> > > >
> > > >
>
> > > > On Tue, May 6, 2008 at 5:22 PM, toby <pv3d at eplay.de
> <http://eplay.de>> wrote:
> > > >
> > > > > Hi there,
> > > > >
> > > > > in Great White, I am trying to achieve the following:
> > > > >
> > > > > 1. I load a number of Bitmaps (PNGs with transparent
> areas) and use
> > > > > them
> > > > > as material for planes. I do so using a modified Loader...
> > > > > ...
> > > > > material = new
> BitmapMaterial(Bitmap(evt.target.content).bitmapData);
> > > > > ...
> > > > >
> > > > > 2. I then make those materials clickable.
> > > > > ...
> > > > > plane.addEventListener(InteractiveScene3DEvent.OBJECT_CLICK,
> > > > > onObjectClick);
> > > > > ...
> > > > >
> > > > > How (if) can I allow users to click through the transparent
> areas, and
> > > > > reach the planes that are further away?
> > > > >
> > > > > Any help is appreciated.
> > > > >
> > > > > Cheers,
> > > > > Toby
> > > > >
> > > > >
> > > > >
> > > > > _______________________________________________
> > > > > Papervision3D mailing list
>
> > > > > Papervision3D at osflash.org <http://osflash.org>
>
> > > > > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> > > > >
> > > >
> > > >
> > > > _______________________________________________
> > > > Papervision3D mailing list
>
> > > > Papervision3D at osflash.org <http://osflash.org>
>
> > > > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> > > >
> > > >
> > >
> > >
> > > --
> > > Pedro Furtado
> > > http://www.dreaminginflash.com
> > > http://dailypv3d.wordpress.com
> > > _______________________________________________
> > > Papervision3D mailing list
>
> > > Papervision3D at osflash.org <http://osflash.org>
>
> > > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> > >
> > >
> >
> >
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org <mailto:Papervision3D at osflash.org>
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>
>
>
> --
> Pedro Furtado
> http://www.dreaminginflash.com
> http://dailypv3d.wordpress.com
> ------------------------------------------------------------------------
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
More information about the Papervision3D
mailing list