Unity3D and FLARToolKit steering wheel test

Now that there is free windows version of unity3d, everyone has to try it out. Inspired by this experiment, and having ready FLARToolKit steering wheel code from one of recent projects, I did this:

I’m not exactly the best modeller in the world, and I still suck at unity scripting, but I still think this is pretty good demo, so go ahead and give it a try :) Print this marker sheet beforehand.

Behind the scenes.

What I did here was using FLARSquare‘s line property for steering wheel rotation in flash, reading it through ExternalInterface callbacks every 100 milliseconds in html and notifying unity via SendMessage(). Not a rocket science, but there are few tricks to learn from it; for example, inobvious benefits of using multiple co-oriented instances of single marker:

Thanks to this, user has enough motion freedom to maintain control over steering wheel without visual feedback (webcam video) and, therefore, can focus on unity experience better. For another example, FLARToolKit is now not compiled together with controlled content and you can easily replace it with something else, thus taking it out of GPL2 sec 2b reach and limiting it to controller SWF sources only (note that ARToolworks lawers may be thinking otherwise).


11 Responses to “Unity3D and FLARToolKit steering wheel test”

  1. 1 ringo December 24, 2009 at 01:41

    Awesome, good to see more flash unity combos, i did a experiment
    myself aswell a while ago: http://www.ringo.nl/unity/soundspectrum1/

  2. 2 Joe @ ByDesign Games December 26, 2009 at 20:02

    Hi there!

    Very cool integration. Wanted to tell you that it works just as well showing the marker image on an iphone… just holding the iPhone in front the camera showing the image, was able to drive in your test scene.

    Very cool!

    Please consider to upload the project to the Unity Community Wiki for all to enjoy!


    Thanks for sharing this :)

  3. 5 makc3d December 26, 2009 at 22:12

    @ringo, I saw that before, and unfortunately I couldn’t hear anything both times :(

    @joe, I don’t see any specific guidelines for that?

    • 6 Joe @ ByDesign Games December 27, 2009 at 07:00

      Not, really no. It’s a community site, so if you use Unity, then you are welcome to post! Just try to be concise in your description, and uploading a screenshot (to go with the video) is always appreciated.

      If you need “how to post” type info, just create your account, then click Edit on an existing page to see the markup. You can copy and replace, as needed.

      Loading your page in Safari, I hear music starts before the Unity scene loads but once it does, nothing in the scene seems to happen. The array of rotating spheres just rotate but do not respond otherwise. I guess the balls are supposed to respond to the muci? Also, maybe put your hidden flash div visible, so others can see what is going on?

  4. 7 Wil@Millipede December 29, 2009 at 06:24

    Hey there,

    we did something similar except we used an iPhone to control Unity. Check it out at http://www.citygt.com

  5. 8 makc3d June 22, 2010 at 23:24

    Btw, I have posted important bit of this code here, if anyone is looking for it.

  1. 1 Hebiflux » Unity3D + FlarToolkit = … hein ?! Trackback on December 24, 2009 at 10:09
  2. 2 One wheel to drive them all « ¿noʎ ǝɹɐ ʍoɥ 'ʎǝɥ Trackback on December 26, 2009 at 02:38
  3. 3 Weekly Shared Items – 29. December, 2009 | TOXIN LABS - weblog of a german design student from wuerzburg Trackback on January 7, 2010 at 19:50

Ask a Question

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Old stuff

December 2009
« Nov   Jan »

Oh, btw…


%d bloggers like this: