Ingo Chou Posted December 3, 2015 Share Posted December 3, 2015 Hello, FreeCamera, ArcRotateCamera, FollowCamera can work on PC (windows), but these cameras can not supported on iPad, iPhone except ArcRotateCamera. There is no response when I touch or touch move on iPad, iPhone except ArcRotateCamera. Thanks for your reply and help. Quote Link to comment Share on other sites More sharing options...
MasterK Posted December 3, 2015 Share Posted December 3, 2015 i found even ArcRotateCamera does not work...the touch event system is not well in babylon.js...wait someone tell the effect method... Quote Link to comment Share on other sites More sharing options...
RaananW Posted December 3, 2015 Share Posted December 3, 2015 That's not a bug, that's the correct behaviour.The free camera has touch variant called TouchCamera, which is touch controlled. The arc rotate camera is both touch and keyboard controlled. If it's not working, let us know so we can find the cause. Quote Link to comment Share on other sites More sharing options...
Ingo Chou Posted December 3, 2015 Author Share Posted December 3, 2015 Hello, Why not put these functions together like ArcRoateCamera for other cameras? In my opinion, it is not easy to use because I must create and maintain two different cameras for PC and iPad. However, their functions are exactly the same. Thanks for your reply and help. Quote Link to comment Share on other sites More sharing options...
jessepmason Posted December 3, 2015 Share Posted December 3, 2015 if your looking for just the rotation on the free camera to work on touch screens Iike I was, I just went in the babylon.freeCamera.js file and changed the mouse event listeners to the pointer ones and it worked nicely @MasterK for the ArcRotateCamera I also was confused but this link helped me understand what was going on MasterK 1 Quote Link to comment Share on other sites More sharing options...
davrous Posted December 3, 2015 Share Posted December 3, 2015 Hello, Why not put these functions together like ArcRoateCamera for other cameras? In my opinion, it is not easy to use because I must create and maintain two different cameras for PC and iPad. However, their functions are exactly the same. Thanks for your reply and help. PC and mobile touch devices are not behaving the same. It's complex to build a camera control that will work properly on both platforms. For instance, PC can have keyboard + mouse control (FPS or FreeCamera) but also a touch screen. If I'm enabling touch support on the FreeCamera for iPads for instance, it will break the behaviour of the control on touch PCs. That's why, for simplicity, we're letting you deciding the camera to use based on the current devices connecting to your experience. It's very easy to switch from a type of a camera to another one. For instance, have a look to the way we're going it on BabylonJS.com via the camera button to switch from touch to virtual joystick and so on: https://github.com/BabylonJS/Samples/blob/master/js/loader.js At last, touch is now supported via the jQuery Pointer Events polyfill named PEP. Thanks to that we have touch support on all platforms: iPad, Android, Windows Phone and touch PC. We're using hand.js (made by us) in the past but we'd like to support the jQuery polyfill to have a unique solution being pushed. Quote Link to comment Share on other sites More sharing options...
Vousk-prod. Posted December 3, 2015 Share Posted December 3, 2015 FYI, I've juste switched to PEP instead of hand.js, and Firefox on Linux can't move ArcRotateCamera correctly anymore with mouse clicks... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.