how to draw a simple 2D shape according to compass data

Tutorials concerning the OpenGL® ES cross-platform API for full-function 2D and 3D graphics on the Google-Android platform.

how to draw a simple 2D shape according to compass data

Postby vudin » Sun May 16, 2010 1:09 am

Hello to everyone;

I am trying to develop an application based on compass and camera surface. In the application there will be a camera preview and I want to draw a rectangle and text on this preview. When user turns the device aroun him, there will be rectangles showing the main directions. In other words; there must be 4 rectangles on North, West, South and East. When user turns the camera, he can see the rectangles in their directions (according to azimuth value).

Now I am able to get the azimuth value and I am able to draw a rectangle. But how can I make this rectangle moving according to azimuth value?

Can anyone help me?

I hope I could explain my problem in a good way, sorry about my English..
vudin
Freshman
Freshman
 
Posts: 2
Joined: Sun May 09, 2010 11:55 am

Top

Return to Android 2D/3D Graphics - OpenGL Tutorials

Who is online

Users browsing this forum: Google [Bot] and 2 guests