Support - Forum aa

« Back to Support
Bug Report » custom cursor conflict with flare3D

» custom cursor conflict with flare3D

Posted on 01.27.2012 by chen, chao
If I use Mouse.registerCursor and when I mouse up from scene3D, the Mouse change to default shape.
Why?
|
Share this
 
Reply By Vodopiviz, Ivan 01.27.2012
Hi,

This happens because scene manages some of your mouse interactions. Unfortunately, scene doens't know about your custom cursor and will default to the stock one.

One thing you can do is setting scene.mouseEnabled = false so the scene won't mess up your mouse events. Please keep in mind that if you do so you wont be able to add mouse-related events to your scene objects.

Hope this helps!
Reply By chen, chao 01.28.2012
Can you fix it in the furture version of Flare3D?
Reply By Nehmad, Ariel 01.30.2012
hi chao, 

we can try to work around this, but I can not promise.

maybe we can add some defaultMouseCursor property, but I'm not sure if this could work.
Reply By chen, chao 01.30.2012
Thanks anyway~
Reply By Huang, Jason 04.14.2012
Any news for this issue? I have been troubled by this for a long time:( 
Reply By Nehmad, Ariel 04.14.2012
hi guys, we'll look at this again.

we have some options.

a) add a defaultMouseCursor that you can define (right now when we change the cursor, we back to Mouse.curosr = MouseCursor.AUTO....so it will show you custom cursor again.

b) add a property to completely disable the mouse cursor changes and let you manage that cursor changes. 

what do you think?
Reply By Huang, Jason 04.14.2012

I think the option B is much better. For some cases, we need to change cursors depends on different meshes. And also the cusors would change in the both 2d layer and 3d layer. when  mouse rolling on to a 3D mesh and there is also a 2d content overlayed on it, can we do something  to disable the mouseEvent that is behind the top content like we used to handle 2d contents in flash. Currently when I using mesh.useHandCursor = true method. it would occur somthing very strange that the HandCursor wont change back if I rolling mesh and all the way to a 2D layer above.
Reply By Huang, Jason 04.14.2012
As reference, This is what I created with Flare3D 2.047b. Mabe it helps to resolve some issues in the new version:)
Reply By Huang, Jason 04.14.2012
And for this demo, I simply can not import to my IPAD2( model only,without any interactions but camera rotation):( it dies in IPAD2...
Reply By Huang, Jason 04.14.2012

Sorry, I posted a bad link. Here is the new one:)
12Next»Showing 10 of 13