Warning: readfile(http://alkoltashov.narod.ru/leebyron.com.txt) [function.readfile]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /var/www/leebyron.com/www/how/wp-content/themes/leebyronhow/header.php on line 20

iPhone – Yellowtail

A week ago I got a shiny new iPhone. A few days later I got my Developer’s Certificate and the API. Two days after that, today, I’ve got the first app up and running!

It’s a port of Golan Levin’s Yellowtail with the small addition of multi-touch.

OF and Processing nerds read on

For the OF and processing nerdies out there, what’s actually interesting about this is that this is the beginning of a OF/processing style interactive graphics platform for the iPhone in which you can get by with 95% C++ and avoid writing your app in Objective C.

This two day old version supports multi-touch. I’m essentially treating each finger as if it were a different cursor. Instead of mousePressed(int x, int y) you get touchDown(int x, int y, int touch) where 'touch' tells you just which finger I’m talking about; they’re numbered in the order in which they appear (and you can have up to five at once!) For convenience there’s also a doubleTap(int x, int y, int touch) function.

Another feature is a C++ wrapper for OpenGL-ES textures and images (similar to ofImage and ofTexture). OpenGL-ES is a little nastier to write since it has to be efficient, and there’s a good 100+ lines of code just to draw a png into the screen. Also the only image format I could get to work is a PNG-24.

Also managed to figure out how to interpret “mach” kernel’s time to derive millis() which familiarly tells you how much time has passed since the app started.

There are a few other minor things like quick commands to show and hide the iPhone status bar (I’ve made it hidden by default) and to launch a URL (which quits your app and loads Safari).

The code is nasty as all get out right now, so no public download for now. I hope to have something to share pretty soon. Look out for Yellowtail on the App Store in the very near future!

Reader Replies

  1. christian replied
    on Aug 31st, 2008 at 4:31 pm

    I’m looking forward to see how this platform you are working on will be.
    Cheers, chr

  2. vade replied
    on Sep 1st, 2008 at 2:27 am

    Out of curiosity, why would I not want to use Cocoa?/OBJ-C ?

  3. johnny0 replied
    on Sep 1st, 2008 at 4:04 pm

    OK, that is sweet, especially with the multitouch.

    Yellowtail could make a interesting signature verifier since it records both shape and speed.

    How about some variants? It would be interesting to see things bounce off each other. Or closed shapes stay in place. Or draw a circle (or any closed shape), and then things drawn *in* that circle stay within it. Call it YellowCell…

    Anyway, looking forward to draining my battery soon. :)

  4. Zach replied
    on Sep 1st, 2008 at 10:25 pm

    Cool stuff. But I’ll also ask: Why not Obj-C?

  5. Lee Byron replied
    on Sep 1st, 2008 at 11:07 pm

    vade & Zach,

    You certainly could use Objective C instead of C++, there is no performance hit for choosing either one to my knowledge.

    My personal benefit is that I am not very comfortable with writing Objective C, and C++ is more homey to me. Add on to that many of my previous apps that I’d like to port to the iPhone are in C++, there are tons of libraries available in C++ and to top if off there is a big community of interactive art hackers that I’m appealing to with this (openFrameworks).

    You certainly could make this exact same thing without touching C++.

    Perhaps the point is that the flexibility to choose between the languages (or mix them) lets me work the way I like!

  6. Jonas replied
    on Oct 26th, 2008 at 7:48 pm

    Hey, this looks very cool! Have you come further with the release of the code? Would love to give it a look.

  7. Jeff W replied
    on Dec 18th, 2008 at 9:11 am

    I gotta admit, I havent worked with C++ since college so I’m lost with all of the technical stuff but that video is pretty damn cool!

  8. Womens Golf Gloves replied
    on Jan 13th, 2009 at 9:53 am

    I have to admit – I don’t understand anything that you are saying….but I do understand that what you created it really, really cool and impressive. Is it up in the app store yet?

  9. todoslot replied
    on Mar 17th, 2009 at 3:39 pm

    Thanks for the post, is that got me exactly where I needed to go.

  10. tienda de scalextric replied
    on Apr 11th, 2010 at 1:20 pm

    Nice post having an excellent content,which are really helpful for a reader like me.Thanks for sharing this with us.Keep it up.Keep blogging.

  11. Jogos Gratis replied
    on May 25th, 2010 at 3:29 pm

    I loved this application you showed in the video. Can you post the link where I can download it?

  12. Patent Lawyer replied
    on Jul 1st, 2010 at 1:53 pm

    I too love the application shown in the video. However, all the programming talk got me confused. I assume the app was built with C++??

  13. Ovarian Cyst Symptoms replied
    on Jul 2nd, 2010 at 7:32 am

    I’m looking forward to see how this platform you are working on will be.

  14. ninco replied
    on Jan 2nd, 2011 at 2:42 pm

    Congratulations on your great work. Hopefully you will get all the respect you deserve for it.

  15. Kitchen Cabinets replied
    on Jan 21st, 2011 at 8:30 pm

    I was just researching YellowTail for iPhone and I came across this post. It’s funny how you can look back to the developing stages of the app and see how much it has changed. I really enjoy playing with it with my family. Thanks for making such an awesome app!

  16. NJ Inground Pools replied
    on Jan 24th, 2011 at 3:09 pm

    Hey Kitchen,

    It’s pretty crazy that you mention that. I love watching seeing things progress.. I’m a huge fan and so glad that this is available.

    w00t!!

    ;D

    Corey

  17. Pitney Bowes replied
    on Feb 24th, 2011 at 10:28 pm

    Boy, you “lexis” guys get around. I don’t know if it’s explained but Yellowtail is an interactive software system for the gestural creation and performance of real-time abstract animation. Using a playful animated transformation of the user’s gesture, the software produces an ever-changing and responsive display of lively, worm-like textures.

  18. Lynnwood Apartments replied
    on Mar 29th, 2011 at 6:39 pm

    You made an Iphone app in 2 days? Holy crap!

  19. Kitchen Cabinets replied
    on Apr 13th, 2011 at 11:01 pm

    Where is the best place to learn how to program app for the I phone? Thanks for any help.

    Congratulations on your work.

  20. Diseño web madrid replied
    on May 16th, 2011 at 9:49 am

    Amazing, realy it’s very useful information for all of us. Thanks for providing us this information

  21. Diseño web madrid replied
    on May 16th, 2011 at 9:51 am

    Amazing, this was exactly what i was searching for.

  22. waiting room furniture replied
    on May 25th, 2011 at 10:04 pm

    Love Yellowtail, fantastic port. Thanks for the news and video.

  23. Ovarian Cyst Treatment replied
    on Jul 28th, 2011 at 8:54 am

    Yellowtail seem like a cool port, just get that phone fist… :-)
    Clare

Leave a Reply