ywywdh / papervision3d

Automatically exported from code.google.com/p/papervision3d
0 stars 0 forks source link

Moving a camera dispatches Interactive3DSceneEvent.OBJECT_OVER #161

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Within an interactive viewport, build a scene (a few planes, say)
2. Add listeners to the planes for Interactive3DSceneEvent.OBJECT_OVER
3. Move the camera around over the scene with some random tweens.
4. As the camera passes over some of the objects, their OBJECT_OVER event
is triggered

What is the expected output? What do you see instead?
Moving the mouse over the object should trigger the mouse event, not moving
the camera.

What version of the product are you using? On what operating system?
December 3rd.

Please provide any additional information below.
The error can be fixed in InteractiveSceneManager.handleEnterFrame by
removing _viewportRendered from line 271. However, I'm not sure what other
use cases this may effect. It can also be fixed by replacing doing the
checks within handleEnterFrame on a MouseEvent.MOUSE_MOVE.

Original issue reported on code.google.com by gun.net...@gmail.com on 13 Jan 2009 at 6:52

GoogleCodeExporter commented 9 years ago
Sorry - revision is 858

Original comment by gun.net...@gmail.com on 13 Jan 2009 at 7:02

GoogleCodeExporter commented 9 years ago
Thanks for the heads up on this one, and thanks for doing some investigating!

Original comment by neori...@gmail.com on 13 Jan 2009 at 2:29

GoogleCodeExporter commented 9 years ago
Basically, a camera moves and thereby, puts 3D objects under the mouse - this
triggers the OBJECT_OVER event.  Still working on a solution, but it needs to 
be tied
to whether or not the camera has moved.

Original comment by neori...@gmail.com on 8 Mar 2009 at 7:29

GoogleCodeExporter commented 9 years ago
Committed a change that may fix this issue. Seems to be a good fix.

Original comment by neori...@gmail.com on 8 Mar 2009 at 7:41

GoogleCodeExporter commented 9 years ago
Worked for me. Thanks!

Original comment by gun.net...@gmail.com on 11 Mar 2009 at 2:27

GoogleCodeExporter commented 9 years ago
Interesting... that this broke my app. =) I'll try to figure out a better way 
to do
things (or may revert this change on my local copy).

Basically, I need to update information based on what's under my mouse at all 
times,
even if the user has not moved his mouse. For example, if you are in a 
rail-shooting
game, and the camera is moving, new objects will appear under your mouse (even 
if you
haven't moved your mouse).

I need to detect this change as an object_over... =D

Original comment by ron...@gmail.com on 27 Mar 2009 at 1:28