Appcelerator Blog

The Leading Resource for All Things Mobile

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

2 Flares 2 Flares ×

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:

2 Flares Twitter 0 Facebook 0 Google+ 2 LinkedIn 0 Email -- 2 Flares ×


  1. Phil

    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. @Phil: Try cloning the repository from github again and doing a clean build. Also, it should be in there already, but make sure that the twisti module is specified in your tiapp.xml file for your project.

    If you can’t get that working, you may want to try building the Twisti module yourself. The source project for the module itself can be found here:

  3. Phil

    @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.

Sign up for updates!

Become a mobile leader. Take the first step to scale mobile innovation throughout your enterprise.
Get in touch
computer and tablet showing Appcelerator software
Start free, grow from there.
2 Flares Twitter 0 Facebook 0 Google+ 2 LinkedIn 0 Email -- 2 Flares ×