getting orientation & relative position of the phone
by Orion Elenzil · in iTorque 2D · 10/23/2009 (3:51 pm) · 5 replies
this is a general iPhone question more than at T2Di question.
is there some example code for getting the current 6-DOF transform of the phone ?
eg,
suppose i "tare" the phone at some point,
i'd like to then keep track of its position and orientation relative to that point.
is this even possible ?
tia,
orion
is there some example code for getting the current 6-DOF transform of the phone ?
eg,
suppose i "tare" the phone at some point,
i'd like to then keep track of its position and orientation relative to that point.
is this even possible ?
tia,
orion
About the author
#2
well it's similar to the stuff they're doing for augmented-reality apps such as Yelp's recent thing.
10/23/2009 (4:06 pm)
thanks ronny.well it's similar to the stuff they're doing for augmented-reality apps such as Yelp's recent thing.
#3
10/23/2009 (4:25 pm)
I think the AccelerometerGraph is what you're looking for - it was suggested by Allan Schaffer on the iPhone forums in an ARG thread.
#4
10/23/2009 (4:45 pm)
i think Speed8ump's comment in this thread is pretty salient: you can't get 6-DOF without 6 accelerometers, i think the iPhone may have only 3.
#5
10/23/2009 (5:34 pm)
Ah, that's what I suspected.
Torque 3D Owner Ronny Bangsund
Torque Cheerleaders
I'm not 100% sure if the device can tell its actual orientation, or if it just cleverly keeps track of relative movements. I've had many cases where it's in landscape and apps launch portrait, and I need to rotate it back and forth to trigger re-orientation. Going into the other dimensions might be too much to ask.