Forging Titanium Episode 15: Twisti Part 2 – 3D with Three.js

Fingerprint on white paper

Editor’s 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’ll take that transformed data and use it to represent a mobile device as an animated 3D model. This 3D model will be rendered in a <canvas> element via a Titanium WebView with the help of the open source Javascript 3D engine, Three.js. With this, Twisti is quickly becoming a powerful mix of native functionality and cross platform compatibility.

Episode Resources:


  1. Hi, i like the Twisti app series and download twisti ep014 ep015 app on github.

    When i run ep014 app on emulator & device , can’t find the twisti module.

    Error message :
    Error evaluating source: Wrapped java.lang.Exception: Module file app://ti.twisti.js does not exist. (file:///android_asset/Resources/app.js#35)

    Mobile sdk:1.7.5

    Please help

  2. @Tony: Thanks for reply. Still can’t find the twisti module again.

    I also use ant build twisti module and titanium run the module directly, got the same error message too.

    By the way, I can run the twisti app perfectly on MacBook but Ubuntu PC can’t.
    And i can run ti.paint module perfect on ubuntu.

    Sorry for my English.

Comments are closed.