accelerometers in phones - a workshop

24
Accelerational A few thoughts on the use of accelerometers in games Richard Vahrman - Locomatrix

Upload: locomatrix-ltd

Post on 30-Oct-2014

449 views

Category:

Technology


1 download

DESCRIPTION

Slides from a presentation to postgrads at Sussex University. Feb 2012. Students had to give short talks on GPS, accelerometer, gyro and compass. I presented these slides - what I know about GPS and what I don;t know about Acc

TRANSCRIPT

Page 1: Accelerometers in Phones - a workshop

Accelerational

A few thoughts on the use of accelerometers in games

Richard Vahrman - Locomatrix

Page 2: Accelerometers in Phones - a workshop

Phones & Tablets - Full of Sensors

• But lets look at GPS and accelerometers

Page 3: Accelerometers in Phones - a workshop

GPS – What you getAttribute Description Unit

latitudeThe geographical coordinate with a value between –90 to +90 degrees. Negative latitude denotes south and positive latitude denotes north.

Degrees

longitudeThe geographical coordinate with a value between –180 to +180 degrees. Negative longitude denotes west and positive longitude denotes east.

Degrees

altitude Vertical height of the geographical coordinates (Latitude and Longitude). Meters

horizontalAccuracy(Accuracy) The horizontal accuracy of the position denoted by the geographical coordinates (Latitude and Longitude). Meters

verticalAccuracy(Altitude Accuracy) The vertical accuracy of the position denoted by the geographical coordinates (Latitude and Longitude). Meters

speed The current ground speed of the device. If the device is stationary, the value of this attribute will be zero.

Meters per Second

timestamp

The time since the application was initialized. For example, if the application has captured geolocation data for four seconds after it got initialized, then the value of this attribute will be 4000.

Milliseconds

Page 4: Accelerometers in Phones - a workshop

GPS – What you can do with it

Page 5: Accelerometers in Phones - a workshop

Invisible BuildingsHere’s our game

Page 6: Accelerometers in Phones - a workshop

Metal Detectors

Page 7: Accelerometers in Phones - a workshop

GeoFizz

Page 8: Accelerometers in Phones - a workshop

The Dig

Page 9: Accelerometers in Phones - a workshop

Dinosaurs

Page 10: Accelerometers in Phones - a workshop

Bomb Disposal Squad

Page 11: Accelerometers in Phones - a workshop

Accelerometers – What you get• accelerationX—Acceleration along the x-axis, measured in g’s. The x-axis

runs from the left to the right of the device when it is in the upright position. (The device is upright when the top of the device is facing up.) The acceleration is positive if the device moves toward the right.

• accelerationY—Acceleration along the y-axis, measured in g’s. The y-axis runs from the bottom to the top of the device when it is in the upright position. (The device is upright when the top of the device is facing up.) The acceleration is positive if the device moves up relative to this axis.

• accelerationZ—Acceleration along the z-axis, measured in g’s. The Z axis runs perpendicular to the face of the device. The acceleration is positive if you move the device so that the face of the device points up. The acceleration is negative if the face of the device points towards the ground.

• timestamp—The number of milliseconds at the time of the event since the runtime was initialized.

Page 12: Accelerometers in Phones - a workshop

Plane flying games

Page 13: Accelerometers in Phones - a workshop

Car Racing Games

Page 14: Accelerometers in Phones - a workshop

Tilting Games

Page 15: Accelerometers in Phones - a workshop

Arcade Games

Page 16: Accelerometers in Phones - a workshop

Penguin Skiing Games

Page 17: Accelerometers in Phones - a workshop

But, aren’t these all the same?

• Yes, a more interactive mouse.• Can we do more?

Page 18: Accelerometers in Phones - a workshop

Thinking something more like this

Page 19: Accelerometers in Phones - a workshop

Maybe this

Page 20: Accelerometers in Phones - a workshop

My Height System

Page 21: Accelerometers in Phones - a workshop

Digging• The winners of this

year’s hole digging contest managed to dig a 3.26-meter-deep hole, and took home the 100,000 yen ($1,215) cash prize. It didn’t exactly make them rich men, but it was an original way to spend a Sunday.

Page 22: Accelerometers in Phones - a workshop

Investigating Sensors - GPS Status

Page 23: Accelerometers in Phones - a workshop

Investigating Sensors – Tour de Flex

Page 24: Accelerometers in Phones - a workshop