Editors note: This and future episodes of Forging Titanium are available here.
In Part 1 of the Twisti app series we created a native Android module that listened for sensor data. This sensor data was then transformed into 3 values, azimuth, pitch, and roll, which represented the physical orientation of the mobile device. In Part 2 we took that transformed data and used it to represent a mobile device as an animated 3D model with Three.js in a Titanium WebView <canvas>.
In this third and final episode in the series, we'll create a client/server relationship with Titanium Sockets. We'll create an android device that will act as a sensor proxy, serving its physical orientation to connected clients. Those clients will represent the remote sensor as a 3D model, just as in Part 2.
- twisti-ep016 app on Github
- Twisti module on Github
- Forging Titanium Episode 14: Twisti Part 1 - Android Module
- Forging Titanium Episode 15: Twisti Part 2 - 3D with Three.js
- Titanium.Network.Socket.TCP API Docs
- Appcelerator Wiki: Sockets
- Appcelerator Blog: Intro to Sockets
- Building Native Mobile Applications - Integrating Web Content
- Three.js on github