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).
Awesome, good to see more flash unity combos, i did a experiment
myself aswell a while ago: http://www.ringo.nl/unity/soundspectrum1/
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!
http://www.unifycommunity.com/wiki/index.php?title=Unity_Projects
Thanks for sharing this :)
Makc,
Did you share the code/project anywhere so I can link to it from my collection of Unity Community projects?
And it’s awesome seeing Unity working seamlessly with Flash.
I don’t really think I still have it, it was made half of year ago; but I think it’s easy to reproduce given directions above, and FLARToolKit snippet below.
@ringo, I saw that before, and unfortunately I couldn’t hear anything both times :(
@joe, I don’t see any specific guidelines for that?
@makc3d
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.
@ringo
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?
Hey there,
we did something similar except we used an iPhone to control Unity. Check it out at http://www.citygt.com
Btw, I have posted important bit of this code here, if anyone is looking for it.