[Papervision3D] interactive objects

quinrou . quinrou at gmail.com
Wed Jul 1 04:59:22 PDT 2009


Hi,

I am having problems to get the the object_press and object_click event
working.

My setup is as follow:

I have set my 3d scene to be interactive.
I have a main viewport layer container when i add different display object
3d with the getChildLayer method from the ViewportLayer class.
One of these viewport layer holds several display object 3d. these display
object 3d hold 2 display object3d (2 planes). I have set event listeners for
object_click and object_press for both planes. The texture for both planes
have their intereactive property set to true too.

However the click and the press event are not fired.

What am I missing something?

here is how my scene is achitected:

scene
  +mainViewportLayer (viewport layer)
    +objectcontainer1 (added via getChildLayer to mainViewportLayer)
    +objectconatiner2 (added via getChildLayer to mainViewportLayer)
    +objectcontainer3 (added via getChildLayer to mainViewportLayer)
      +obj1 (added to objectcontainer3 via addChild)
        +plane1
        +plane2
      +obj2 (added to objectcontainer3 via addChild)
        +plane1
        +plane2
      +obj3 (added to objectcontainer3 via addChild)
        +plane1
        +plane2

Help!
Thanks
S
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20090701/933a6e46/attachment.html>


More information about the Papervision3D mailing list