Nastro Posted June 23, 2016 Share Posted June 23, 2016 Hi @Luaacro If you take a multiple tactil application we use two fingers to pan like said @Jose Vicente Quote Link to comment Share on other sites More sharing options...
julien-moreau Posted June 24, 2016 Share Posted June 24, 2016 so we can have an option to activate only panning or zooming ? Two fingers are already used to zoom if I'm not wrong Quote Link to comment Share on other sites More sharing options...
iiceman Posted June 24, 2016 Share Posted June 24, 2016 Can you distinguish between a 2-finger-slide/swipe and a 2-finger pinch-stretch movement? https://www.microsoft.com/surface/en-us/support/touch-mouse-and-search/using-touch-gestures-tap-swipe-and-beyond?os=windows-8.1-rt-update-3 Quote Link to comment Share on other sites More sharing options...
Nastro Posted June 24, 2016 Share Posted June 24, 2016 I don't know how make this. But maybe you can configure differents movements. I will try to do this (next step after optimization) I asked a similar question, and i need to test "FreeCamera" with events Quote Link to comment Share on other sites More sharing options...
Kesshi Posted June 24, 2016 Share Posted June 24, 2016 31 minutes ago, Luaacro said: so we can have an option to activate only panning or zooming ? Two fingers are already used to zoom if I'm not wrong You don't need to distinguish between zoom and panning. In my own camera implementation i also use two fingers for both simultaneously. It works very well. I use the center of the two fingers as the panning point and distance between the two fingers for the zoom. Quote Link to comment Share on other sites More sharing options...
Jose Vicente Posted June 27, 2016 Share Posted June 27, 2016 As @iiceman and @Kesshi pointed, I don't want to choose between pan and zoom, I want both if possible Quote Link to comment Share on other sites More sharing options...
ViBe Posted June 27, 2016 Share Posted June 27, 2016 Hello, +1 for adding panning on mobile device Quote Link to comment Share on other sites More sharing options...
Nastro Posted August 10, 2016 Share Posted August 10, 2016 Someone has create event tactil touch like that ? I had no succes... Quote Link to comment Share on other sites More sharing options...
ozRocker Posted December 3, 2016 Share Posted December 3, 2016 I tried to implement this. I edited the ArcRotateCameraPointersInput code to try and get 2-finger touch to pan. It kinda works but for some reason I can't change direction whilst the fingers are down. Also, it gets tricky trying to distinguish between pan and zoom. Any tips to make this work better? My code is here http://www.babylonjs-playground.com/#RQJ38#2 Search for "I EDITED THIS PART" to get to the code that I added. ViBe 1 Quote Link to comment Share on other sites More sharing options...
ViBe Posted December 8, 2016 Share Posted December 8, 2016 Hello, Always interested by this implementation ! I need it too. I woukd like to help, but I'm not sure I can... I'm going to play with your playground After a new reading of the topic, it seems that @Kesshi has already worked on it. Maybe if he reads this, he could help us. Quote Link to comment Share on other sites More sharing options...
Kesshi Posted December 9, 2016 Share Posted December 9, 2016 @ViBe Yes i sovled that problem for this project: You can try it on a touch device. But i can't publish the code because its a commercial project ( but in the end its javascript, so ... ). Its also not so easy to give you some code snippets because i don't rely on any input/event handling from BabylonJs. I implemented my own solution which directly controls a plain BABYLON.TargetCamera.@ozRocker There is no need to distinguish between zoom and panning. You should perform/calculate both at the same time. If the user doesn't change the distance between the fingers while moving them, no zoom will happen only the panning. Atleast this is what i'm doing in my project. Quote Link to comment Share on other sites More sharing options...
ozRocker Posted December 9, 2016 Share Posted December 9, 2016 2 hours ago, Kesshi said: @ViBe Yes i sovled that problem for this project: You can try it on a touch device. But i can't publish the code because its a commercial project ( but in the end its javascript, so ... ). Its also not so easy to give you some code snippets because i don't rely on any input/event handling from BabylonJs. I implemented my own solution which directly controls a plain BABYLON.TargetCamera.@ozRocker There is no need to distinguish between zoom and panning. You should perform/calculate both at the same time. If the user doesn't change the distance between the fingers while moving them, no zoom will happen only the panning. Atleast this is what i'm doing in my project. Thanks for the tip! I altered my previous playground http://www.babylonjs-playground.com/#RQJ38#3 The panning is better here. I just need to make it work with zoom. I think zoom is too sensitive on touch devices. 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.