You Are Here:

Community: Blogs

Who am I?

mopius

Thinking about what mobile phones can do except messaging and voice calls is one of my main interests. At the department of Mobile Computing at the University of Applied Sciences in Hagenberg (Austria), I can work on those ideas every day by collaborating with students, researching and - well - thinking.

 

Calendar

« March 2009 »
Mo Tu We Th Fr Sa Su
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          
 

Andreas Jakl's Forum Nokia Blog

The Phone’s Compass as a Game Controller

mopius | 24 March, 2009 22:08

CarChallenge is controlled through the compass of the mobile phone.
CarChallenge is controlled through the compass of the mobile phone.
The Nokia 6210 Navigator is the first device from Nokia that features a magnetometer. It allows using the phone as a compass – very important for pedestrian navigation. GPS alone can only determine the direction in which you’re facing when you are moving. With a compass, the phone instantly knows in which direction you’re facing and rotates the map accordingly. This makes me happy when I step out of the underground and want to know where to go – without having to walk several meters only to find out that I chose the wrong direction.

A traditional compass only works when it is held horizontally. As Paul Coulton recently described in his Forum Nokia Blogs posting, the Nokia 6210 includes a 3-axis magnetometer. Through some calculations, it is possible to find out the absolute direction in which the phone is facing, no matter how the phone is oriented. The S60 Sensor Framework provides a processed sensor output that gives you the degrees relative to the North Pole.

Compass Applications

Traditional applications that greatly benefit from a compass are apps like the “Magic Wand” (recently described by Paul; our students have also been working on a similar app during the winter semester): just point the phone to a building and the phone tells you what it is. By combining information from GPS, the accelerometer and the compass, it is possible to determine where the user is pointing his phone and for example to augment the camera picture with additional information about what he sees.

Another possibility would be to use the same method for showing information about the stars and constellations. Just point your phone to a star and instantly get information about it. I’m not yet aware of any such applications for S60 phones that integrate the magnetometer. General planetariums are of course available, like for example Solun’.

A few days ago, I’ve been chatting with Philipp Breuss, one of the winners of the first Android challenge and now teaching Android at our Mobile Computing department in Hagenberg. He told me that there are currently two such planetarium applications that make use of the magnetometer for the Android platform; one of them being his own. An easy to understand concept that has great potential.

Compass Games

The compass is of course not limited to applications. A novel idea is to use it for controlling games. Christian Feldbacher and his colleagues Philipp Rakuschan and Clemens Stangl have been busy developing a 3D car game with a clever artificial intelligence over the last two semesters - called CarChallenge. As an experiment, we decided to include the compass as an additional control method.

Playing the game with the compass requires physical action – the car drives in the absolute direction you’re facing. Want to turn the car left? Just turn yourself to the left. How to turn the car around? Make a 180° turn yourself (e.g, from North to South).

In contrast to the compass, the acceleration sensor is only able to measure relative movements on this axis. The rather small resulting sidewise acceleration forces would not be sufficient for accurate game control. Instead, accelerometer based car games usually rely on tilting the device – something that can be measured easily through the different distribution of gravity to the three accelerometer axes. However, there would not be a difference at all if you’re facing to the North or the South – the gravity is always just directed downwards. Through the compass, the game is now able to integrate the absolute direction in which you’re facing.

His video on YouTube demonstrates the look and feel of the game, as well as the compass-based control mechanism. Of course, steering via the compass isn’t well suited for playing the game in a bus and is probably problematic for long gaming sessions. However, it’s great fun!

As a next step, why not make a game that determines how often you can turn around before you get dizzy and fall to the ground (detected by the accelerometer, to use the available sensors to their full extent)?

CarChallenge is essentially finished and will be released shortly. Watch the project page at symbianresources.com for updates!

RSSComments

Dizzy feature

fullhdtv | 02/04/2009, 10:22

Fun feature, but I think I will get very dizzy playing games this way.

Re:

ouarzazate | 19/09/2009, 16:10

thank you Andreas for this pretty article.

Re: The Phone’s Compass as a Game Controller

slackgen99 | 11/11/2009, 22:20

Great post!!! free online games

Re: The Phone’s Compass as a Game Controller

manfred82 | 20/11/2009, 17:42

Although the game in itself is common (car driving), I think it'll become popular thanks to the original way it's played.

You must login to post comments. Login
 

Rate This

 
 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fblogsE2eforumE2enokiaE2ecomE2fblogE2fandreasE2djaklsE2dforumE2dnokiaE2dblogE2f2009E2f03E2f24E2fcarchallengeX qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZBlogContentQ qdcZtypeQUqfntypeZBlogE45ntryQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUxhttpE3aE2fE2fswE2enokiaE2ecomE2fFNE2d1E2fBlogTopicE2fgeneralX qfnZtopicQUqfnTopicZentertainmentQ qfnZtopicQUqfnTopicZgamesQ qfnZtopicQUqfnTopicZseriesE5f60Q qfnZtypeQUqfntypeZBlogContentQ qfnZtypeQUqfntypeZBlogE45ntryQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qfnZuserE5ftagQSxentertainmentX qfnZuserE5ftagQSxs60X qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZBlogContentQ qrdfZtypeQUqfntypeZBlogE45ntryQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ