BMWPilote Posted June 26, 2018 Share Posted June 26, 2018 Hi folks, How does Babylon.js handle multi-touch on mobile device? It seems that babylon relies on pep.js? Where can I find any example or documentation? Many thanks Quote Link to comment Share on other sites More sharing options...
dbawel Posted June 26, 2018 Share Posted June 26, 2018 @BMWPilote I could provide the code for modifying multitouch code, however on a recent project ( over a year ago), it was @Pryme8 who wrote the code. So I must... simply by respect,,, give hime the chance to answer this one. However, there are few limits to how you might handle your multitouch device code; depending on you application. DB Quote Link to comment Share on other sites More sharing options...
Guest Posted June 26, 2018 Share Posted June 26, 2018 Babylon.js relies on Pointer Events which is a W3C standard (implemented by IE, Edge and Firefox. Chrome is about to implement it). PEP.js is a polyfill to help supporting pointer events when there is no browser support Whaty are you trying to achieve with multi touch? davrous 1 Quote Link to comment Share on other sites More sharing options...
dbawel Posted June 26, 2018 Share Posted June 26, 2018 ping @Pryme8 You don't necessarily need pep.js. Quote Link to comment Share on other sites More sharing options...
BMWPilote Posted June 27, 2018 Author Share Posted June 27, 2018 9 hours ago, Deltakosh said: Babylon.js relies on Pointer Events which is a W3C standard (implemented by IE, Edge and Firefox. Chrome is about to implement it). PEP.js is a polyfill to help supporting pointer events when there is no browser support Whaty are you trying to achieve with multi touch? We are trying to use it on IOS, just for rotating, panning and zooming. Quote Link to comment Share on other sites More sharing options...
BMWPilote Posted June 27, 2018 Author Share Posted June 27, 2018 9 hours ago, Deltakosh said: Babylon.js relies on Pointer Events which is a W3C standard (implemented by IE, Edge and Firefox. Chrome is about to implement it). PEP.js is a polyfill to help supporting pointer events when there is no browser support Whaty are you trying to achieve with multi touch? So if I want to use it in Safari or Chrome, how can I exactly do it? Just by importing the npm package of pepjs and it's done? Nothing special to do? Quote Link to comment Share on other sites More sharing options...
dbawel Posted June 27, 2018 Share Posted June 27, 2018 @BMWPilote Here are the docs and demos for pep.js: http://pep.briangonzalez.org/ DB Quote Link to comment Share on other sites More sharing options...
Guest Posted June 27, 2018 Share Posted June 27, 2018 Quote We are trying to use it on IOS, just for rotating, panning and zooming. This should work out of the box with Babylon.js camera as long as you reference pep.js 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.