Showing posts with label augmented reality. Show all posts
Showing posts with label augmented reality. Show all posts

Tuesday, December 18, 2012

On map Augmented Reality with Vuforia + Unity

I have been doing some more development with Android, using a different (and easier) renderer this time than the still nascent OpenSceneGraph port, with a bit of Augmented Reality thrown in via Vuforia.Which basically functions as an OpenCV port with image orientation recognition thrown in optimized for Qualcomm's Snapdragon SoC. The feature detection and texture packing is annoyingly performed at the Qualcomm site, I guess they want to keep track of images over which features are detected and prevent inappropriate use by script kiddies. From the looks of FastCV, the features are either MSER or Harris corners.
I already have Android dev kits going so the fun bit was in importing our nice models into Unity and sending the package over to the device. Textured models seem to import best into Unity via Blender, after a bit of copying around of textures and forcing association with the right materials.
Setting up the scene in Unity is fairly straight forward, the Vuforia SDK delegated to Unity for rendering and simply attaches a handler to the Camera. The visible object is automatically centred in the scene so the camera to target geometry is irrelevant in this case. However lighting is not, so a bit of tweaking in lights is necessary for a nice model render. Switch all the materials to diffuse/mobile to load the appropriate shaders in GLES2. Add an LODGroup node if the model is getting too big, though I was able to render some 100,000 triangle models.
When all is set the tracking can begin. I lined up the model to our orthoimagery, the screenshot does not do it justice. It is really cool watching a 3D object stick out of your screen. Everybody at work is very used to viewing things in stereo, but multi-perspective 3D still has a wow-factor.

Wednesday, January 13, 2010

Wearable dating site AKA beer goggles

One of my friends described his psychology lecture as being replete with people wearing huge sunglasses, mini skirts and ugg boots, who would not know psychology if Freud kicked them in the face.

Being summer sunnies are part of Australian attire - Slip-Slop-Slap-Seek and Slide. Watching a video on Augemented Reality farming recommended by Eric Rice, I wanted to make a facial recognition based dating site goggles. If you jumped on oasis, you would fine 500+ girls looking for guys within 10km from you or vice-versa. Why not pick up those profile pics and build up haar templates trained to pick them up in the crowd in the mall - go and deliver your newly found and unique pick up line instead of the stupid one-liners oasis lets you send.

Australia speak for these could be beer-goggles , lacking a better name. If you are not into beer you could have whiskey, champagne or vodka goggles - whatever is your poison.


Friday, January 8, 2010

Let's get real - Real Tournament 2010

I love working on visual effect using the graphics card, but sometimes simulated renders just doesn't cut it. You want the real look and feel of what it is like, you want to hop into an Avatar and run out there in the harsh world with toxic air and play a game. Admitted the movie has some of the richest renders ever and a lot of human effort went into the art and content creation, but it is difficult to do real time.

So here is the idea, quite simple really - an Augmented Reality MMO with camera robots. Going with the classic shooter genre, we will need some lasers and possibly other projectiles. Here are the units from a quick looks at ThinkGeek.


The Basic Spawn Foot Soldier - Grunt

This is the unit you spawn as before acquiring a transport. Has to be simple cheap, yet robust unit. It also needs to be physically agile with humanoid motions. Ideal candidates are the plethora of humanoids built in Japan. I will choose one that is smallest, runs embedded linux and has a preprogrammed motion called round house kick - i-SOBOT. Sadly the i-SOBOT as it stands lacks a camera, so this is the alternative.






The Basic Land Vehicle - Tank


You of course do not want to be foot bound and run everywhere. So your robot avatar can interface and drive a vehicle. You could also possibly just apparate in a vehicle and never be foot bound. Lots of video streaming car bots are around. I like the ones running a blackfin DSP, but it is aimed at the research market. Though it is hackable, it is pricier. The other option is the Rovio.

The Basic to Advanced Aerial Unit - Chopper and Troop drop

The greatest fun is going aerial and dropping into the back of their base when no one is looking. Need an aerial platform that is cheap small, has a camera and will not be greatly impacted by a fall. The dual-contrarotor designs are good and will make for a fast platform,
where as the quad-rotor designs will make a more stable platform and function as troop-drop.


There is a Swiss ETH spin-off making the dual-rotor ones, Skybotix. Recently there was a lot of media around the iPhone controlled Quadrotor - AR. Drone Parrot. You can actually get one of these as a game dev. Only if I had the cash.

The Scenery and the Sand Pit

So we can now move about willy nilly and see where we are going. Still need a play pen though. This is where we can get really inventive and easy. Making a real forest with trees which take damage on shooting is hard in graphics, but really trivial in augmented reality. May be it will encourage preservation of play parks and clean play beaches, or post-apocalyptic architecture. We will have to stream and clean and stabilize the videos, we will have to motion track and assist with auto-lock shooting. Technology which I pray the millitary will not try to use for other means.