click and zindex in relation to overlapping 3d elements [Resolved]

Software: Away3D 4.x

Avatar
sebbdk, Jr. Member
Posted: 28 August 2011 03:11 PM   Total Posts: 39

I am working on a editor where you place 3D object on a plane currently.
The problem is that the plane catches all mouse interactions.

So when i add a cube and add click events to it, it get’s ignored, and the click is sent right through it to the plane.

I am guessing this is mouse zindex related somehow, but i am not sure what/how to set it to “layer” the cube on top of the plane so it catches the mouse clicks instead.

A little help would be highly appreciated smile

@edit, i add the cube to the scene After i add the plane.

   

Richard Olsson, Administrator
Posted: 28 August 2011 03:23 PM   Total Posts: 1192   [ # 1 ]

Which of the two objects are visible under the cursor (i.e. which is closer to the camera)? Are both enabled for mouse interaction?

   

Avatar
sebbdk, Jr. Member
Posted: 28 August 2011 03:26 PM   Total Posts: 39   [ # 2 ]

yes they are both enabled, the cube is visible under the cursor.

I tested without the plane, to make sure the cube click events came through, there where no problems.

   

Richard Olsson, Administrator
Posted: 28 August 2011 03:28 PM   Total Posts: 1192   [ # 3 ]

Can you upload a screenshot? This sounds like a bug, but I want to be sure I understand the problem completely.

   

Avatar
sebbdk, Jr. Member
Posted: 28 August 2011 03:36 PM   Total Posts: 39   [ # 4 ]

https://skitch.com/kasperbrandt/fwp5a/fullscreen

It is the black cube in question.
The green stuff is the plane in question.

The yellow is just a mouse proxy(3d plane) that follows the plane/mouse, it is not mouse enabled.

   

Richard Olsson, Administrator
Posted: 28 August 2011 03:37 PM   Total Posts: 1192   [ # 5 ]

And you are able to click the cube when the plane is removed from the scenegraph?

First please go get the latest version from GitHub, and if the issue persists, please file a bug in the GitHub issue tracker. If you are able to, it would be very helpful if you could include the least amount of code that duplicates the problem.

Thanks!

   

Avatar
sebbdk, Jr. Member
Posted: 28 August 2011 03:49 PM   Total Posts: 39   [ # 6 ]

I am such a sausage, latest update from git fixes the issue, should have tried that first smile

Thanks alot!

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X