Augmented Reality with indoor localisation and OpenGL

Problems with Canvas, OpenGL, etc...

Augmented Reality with indoor localisation and OpenGL

Postby Cheesecake » Tue Jun 07, 2011 4:49 pm


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

gl.glLoadMatrixf(rotation, 0);

// 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
Once Poster
Once Poster
Posts: 1
Joined: Tue Jun 07, 2011 4:28 pm


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

Who is online

Users browsing this forum: Exabot [Bot] and 1 guest