Away3D 3.6.0 - BSPTree and MouseEvent3D

10 views
Skip to first unread message

macgor

unread,
Oct 22, 2010, 3:38:49 PM10/22/10
to Away3D.dev
Hi,

Does anybody have problem with BSPTree and MouseEvent3D? When I
compile with 3.5.0 works fine. When with 3.6.0 version it doesn't
work.

Just this simple code:
_view.scene.addEventListener(MouseEvent3D.MOUSE_DOWN,onBspDown);

function onBspDown(event:MouseEvent3D){
trace(event.sceneX + " " + event.sceneY + " " + event.sceneZ);
}

in 3.5.0 works, in 3.6.0 not...

Thanks in advance:)

macgor

unread,
Oct 24, 2010, 6:12:34 AM10/24/10
to Away3D.dev
It looks like BSPtree and any child that I add after is
mouseEnabled=false..
When I addChild to _view.scene, mouse events works, but not when mouse
is on BSPtree.
I'm trying to find the solution, I'm tracing HitManager now... found
that when mouse is over BSPtree PrimitiveType is DISPLAY_OBJECT....
but when for ex. sphere added to _view.scene (not
_tree.addChild(sphere)) and mouse over sphere PrimitiveType is FACE.

HitManager.as :

private function checkPrimitive(priIndex:uint):void
[...]
if (_primitiveType == PrimitiveType.FOG || _primitiveType ==
PrimitiveType.DISPLAY_OBJECT)
return;
[...]


So mouse events on BSPtree are impossible now?

Regards,
MG

le_unam

unread,
Oct 28, 2010, 3:59:27 AM10/28/10
to Away3D.dev
i have the same problem ... why didnt answer anybody? maybe it would
just help, when saying "it doesnt work" or tell us the solution ^^
Reply all
Reply to author
Forward
0 new messages