I'm currently developing an Android Augmented Reality app. I'm getting my current location from an indoor tracking system and want to draw some objects i get from another system. position and object coords look like [1.0 , 1.0, 0.0].
All frameworks I have seen so far, use GPS data and have different calculations. plus the calculations seem slow and I thought transforming the objects and drawing with opengl might be the fastest way.
I thought of something like that:
- Code: Select all
SensorManager.getRotationMatrix(rotation, null, accelerometerMatrix, geomagneticMatrix);
SensorManager.remapCoordinateSystem(rotation, SensorManager.AXIS_X, SensorManager.AXIS_Z, rotation);
GLU.gluLookAt(gl, 0, 0, 1.5f, 0, 0, 0, 0, 1, 0); //lets say my camera is always at [0,0,1.5] for now
// here should be some code to draw an object at [2,2,1.5] for example
Now since I know nearly nothing about opengl, I'm wondering if thats the right way.
If so what do I need to draw my objects (any circle or bitmap would suffer) now into my cameraview.
Thanks in advance for your help