Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Augmented Reality


I am wondering if anyone has successfully completed a Augmented Reality (AR) application in Titanium?

Just wanted your feedback on how it runs as I am trying to decide if to build one native or with TI

Thanks in advance.

— asked September 4th 2010 by Jay J
  • android
  • ar
  • augmented
  • iphone
  • native
  • reality

9 Answers

  • Hi guys, sorry for the long delay.
    Since my post, I tried to review and comment a little bit my code, however I found that on iOS 4 devices it isn't working properly, while it seems to work as expected inside the iphone emulator.
    Anyway, here you will find a zip file that contains the necessary files to be dropped in the Resources directory of a newly created project.
    Please consider that this was only an experiment. Use it at your own risk ;-)

    As soon as I'll have some more spare time I'll try to have again a look at the code in order to figure out why it isn't working properly. I'm looking forward to test it on the upcoming 1.5 SDK… Anyway I'm planning to factor out some core parts from that code in order to create a more handy JS library.

    — answered October 25th 2010 by Olivier Morandi
    • Thanks very much! Going to check it out..

      — commented October 25th 2010 by Jay J
    • Very nice work. I haven't had a chance to put it on my phone yet but I will. What kinds of problems are you seeing on a device?

      — commented October 25th 2010 by John McKnight
  • If your trig/maths is good, then it should be ok to do in Ti.

    Have you seen the basic demo in KitchenSink? That would be a good place to start. ;)

    — answered September 4th 2010 by Kosso
  • Am I correct in saying that TI cant do camera overlays in Android ?

    If not, will it be possible in the 1.5 sdk?

    I tried to find the example in Kitchensink, but failed or it didn't work on android.. Can you direct me there ?

    — answered September 5th 2010 by Jay J
    1 Comment
    • Ahh.. sorry.. my bad. I didn't see the 'android' tag you had in your original question. I don't know if it works for Android (I have a feeling the answer is no)

      — commented September 5th 2010 by Kosso
  • There are too many other features going in for 1.5. Camera Overlay won't make it for Android in 1.5.

    — answered September 5th 2010 by Don Thorp
    1 Comment
    • Hi Don, I am hoping the audio streaming is fixed up in sdk 1.5?

      At the moment, i can't stream from a shoutcast url ( on Android below 2.2..

      I have started a product which uses this, but will have to move to another framework or go native if this doesnt work :(

      — commented September 9th 2010 by Jay J
  • Hi, around 3-4 months ago I've been conducting some experiments with augmented reality on Titanium/iPhone (i.e. viewing text labels representing actual points of interest correctly overlaid on a camera view).

    If I remember well, I had some performance problems when processing large sets of POIs, however I didn't have time to perform some serious measurement and eventually optimize the code.

    If anyone's interested I can manage to polish the code and post it somewhere.

    — answered September 6th 2010 by Olivier Morandi
    • I would be very interested in having a play with it..

      Would be great if you could post your code.

      — commented September 6th 2010 by Jay J
    • +1 for that too ;)

      — commented September 9th 2010 by Kosso
    • Interested too!

      — commented September 10th 2010 by Jean-Philippe Boily
    • I'm interesting too, can you share you 2D code?

      — commented November 2nd 2010 by Michael Cherniavsky
  • Olivier, I'm interested in your code; is it possible for me to take a look?

    ivan . mathy [arobase] free . fr

    — answered September 8th 2010 by Ivan Mathy
    • Hi Olivier… I'm also interested if you can post some code :)


      — commented September 8th 2010 by Pierre Nguyen
    • Interested too!

      — commented September 10th 2010 by Jean-Philippe Boily
  • Hi all, I see that my post generated a bunch of requests, but lately I've been quite busy…

    Anyway don't despair. I plan to release the code during this week.
    I'll post a link here and if you want to get notified by mail, please drop me a line at (olivier dot morandi) on google's mail service :-).

    — answered September 13th 2010 by Olivier Morandi
    • Any movement on this Olivier? Looking forward to seeing your code ;)


      — commented September 21st 2010 by Jay J
    • Dear Olivier, kindly paste us the link, i'm interested for the code, thanks!

      — commented August 17th 2011 by yee kee chean
  • Hi All

    I've been playing around with the GREAT source code developed by Oliver.
    I think the reason for the code not working on the device is down to line 477 of the code, which states

    if (Ti.Platform.model != 'Simulator')

    I changed that to read:

    if (Ti.Platform.model =='iPhone 4')

    And it works on the iPhone.

    I can't figure out why the Radar isn't working as yet though…
    Hope that helps someone.


    — answered March 19th 2011 by Simon Burgon
    1 Comment
    • Hi Simon, can you elaborate on how you got this to work. I've downloaded the code and copied it over to a new mobile project (1.6.1). The overlay appears but no POI's get plotting in either the radar or onto the overlay.

      Using if (Ti.Platform.model =='iPhone 4') makes no difference as it was working before but I did spot the error in a case sensitive variable currlocation and changed that to currLocation. Still no luck.

      What did you do and on what device/os did you get it working on?

      Cheers, Phi

      — commented April 7th 2011 by Phi Chong
  • I need to show tweets in AR.
    1) Tweets near me, check my geo position
    2) Open camera
    3) Show in AR the tweets from #mytweet
    4) click in the labels flighting to read it

    Ins ther anyboy interesting to help me ?

    — answered October 6th 2011 by Alejandro Mowszet
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.