- From: Felipe Nascimento de Moura <felipenmoura@gmail.com>
- Date: Thu, 24 Nov 2016 01:56:47 -0200
- To: public-device-apis@w3.org
- Message-ID: <CAJVBkVm+h7HuJX1ieeVhie05okD5-_y3wfMXqxr1N+2forkWdw@mail.gmail.com>
Hello. I have two things to discuss about the Sensors API. (will send them in two different e-mails). Here goes the first: *Motion capabilities* I've tested and played around with Tango Project from Google, and it is quite impressive, very accurate and so far, very reliable. They are focused on Java and Unity and I was talking to them about a move for the Web. It is in their roadmap...but there is nothing defined up to now. My suggestion is (as simple as possible): `simply add motion to Device Orientation API` This way: window.addEventListener("deviceorientation", handleOrientation, true); Would provide us an object with: - absolute (for orientation), - alpha, beta, gamma (for rotation), - translateX, translateY, translateZ (for movement/navigation) I believe that, with that addition (from devices that do have support for those sensors) Web Developers would already have enough power to create A TON of things involving WebGL, Canvas, SVG and even regular HTML pages and CSS. Note that *translate(X/Y/Z)* would be relative to the position in the starting point (set as 0, as soon as the page becomes interactive). They would be expressed in *inches*. Values for *translateZ* are positives when motion is toward the backface of the device (in its starting point). Values for *translateY* are negative when moving down and positive when moving up (in relation to its starting point). Values for *translateX* are negative when moving left and positive when moving right (in relation to its starting point). I'm not sure how far have the discussions gone by now, about these new sensors, but I think we should be ready for them (as they are, actually, already here in some devices). As this platforms and tools evolve, I see a web API approach as something fundamental. I see implications for this in devices like watches, glasses, cellphones and tablets in a very near future. Please let me hear your thoughts about it. Thanks. *--* *Felipe N. Moura* Web Developer, Google Developer Expert, Founder of BrazilJS <https://braziljs.org/> and CTO at Nasc <http://nasc.io/>. Website: http://felipenmoura.com / http://nasc.io/ Twitter: @felipenmoura <http://twitter.com/felipenmoura> Facebook: http://fb.com/felipenmoura LinkedIn: http://goo.gl/qGmq --------------------------------- *Changing the world* is the least I expect from myself!
Received on Thursday, 24 November 2016 03:58:01 UTC