render stops when receiving mouse3d event in apple IOS app

Software: Away3D 4.x

ddmsama, Jr. Member
Posted: 10 June 2012 05:09 PM   Total Posts: 34

we are using away3d 4 beta in ipad/iphone ios. However, we find when we apply a MouseEvent3D.Down to an Mesh, when the Mesh is clicked in ipad, the render stops. (or maybe the enferframe event stops)


anyone understand why this happens?  Thank you every much.

   

ddmsama, Jr. Member
Posted: 10 June 2012 05:27 PM   Total Posts: 34   [ # 1 ]

further report:  We’ve confirm that the MouseEvent3D is actually stopping the Enterframe Event, not just rendering.


but why? so wierd. Flash player and Android performs fine. What’s so special about MouseEvent3D?

 

   

KobeJames, Newbie
Posted: 11 June 2012 02:01 AM   Total Posts: 21   [ # 2 ]

may i have a look your code?

   

ddmsama, Jr. Member
Posted: 11 June 2012 12:08 PM   Total Posts: 34   [ # 3 ]
KobeJames - 11 June 2012 02:01 AM

may i have a look your code?


the code is nothing special:


current_view = new View3D(); 
this.addChild(current_view);

mainCharDummy=new Mesh(new SphereGeometry(300,6,6), material);
current_view.scene.addChild(mainCharDummy);
mainCharDummy.mouseEnabled=true;
mainCharDummy.addEventListener(MouseEvent3D.MOUSE_MOVE,modelMouseDown);

this.addEventListener(Event.ENTER_FRAME, onEnterFrame);


private function modelMouseDown(evt:MouseEvent3D):void
{
msg.addMsg(“mc,”);    //msg is just like trace but visible on the Stage
}
 
private function onEnterFrame(evt:Event):void
{
mainCharDummy.rotationY++;
 
msg.addMsg(“r,”);
 
          current_view.render();

}

 

 

   

Richard Olsson, Administrator
Posted: 16 June 2012 11:48 AM   Total Posts: 1192   [ # 4 ]

This is a known bug. The issue is that we are using pixel bender to speed up the mouse-picking logic, but pixel bender does not work in AIR on iOS. This is currently being fixed as part of a larger refactor of the picking system. You can track this work through the following issue report:
https://github.com/away3d/away3d-core-fp11/issues/229

   

ddmsama, Jr. Member
Posted: 18 June 2012 10:45 AM   Total Posts: 34   [ # 5 ]
Richard Olsson - 16 June 2012 11:48 AM

This is a known bug. The issue is that we are using pixel bender to speed up the mouse-picking logic, but pixel bender does not work in AIR on iOS. This is currently being fixed as part of a larger refactor of the picking system. You can track this work through the following issue report:
https://github.com/away3d/away3d-core-fp11/issues/229


Thank you very much for clearing this up.Really helped a lot^_^

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X