3D Orientation Sensor

Basic4Android - 3D orientation sensor example




About

Using the orientation sensor to control a virtual camera in a 3D scene

With an interest in 3D and motion tracking technologies I recently noticed I could easily get access to the orientation sensor in mobile devices using Basic4Android. Quickly I realised I could capture importand orientation data from my mobile phone that could be used for my projects!. After implementing a simple text example to display the captured data I found that rotating, pitching and banking an android mobile device could be used to control onscreen graphics and movement. My initial idea was make some kind of novel handheld (head tracker) controller or tracking device, but in the end I decided to code a demonstration app which controls a virtual camera looking around a 3D scene (much like my previous desktop demo -DIY realtime 3D motion tracker).

Comments