How to draw grid in OpenGl overlaying Camera Preview

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

How to draw grid in OpenGl overlaying Camera Preview

Postby raich » Sat Feb 20, 2010 12:20 am

Hi,

I'm newbie in OpenGL. I've downloaded a few OpenGL tutorials. But I'm unable to find out how to draw Grid, that points to the camera horizon. Does anyone know about a good OpenGL tutorial/source code for drawing Grids?

My ultimate aim is to project the longitude and latitude grids on top of Camera preview.

Any suggestion will be very much appreciated.

-raich
raich
Freshman
Freshman
 
Posts: 2
Joined: Fri Feb 19, 2010 11:57 pm

Top

Postby MichaelEGR » Sat Feb 20, 2010 5:42 am

make a mock up image in photoshop or image tool of choice, post it, then I'll try and find some time to answer.
Founder & Principal Architect; EGR Software LLC
http://www.typhonrt.org
http://www.egrsoftware.com
User avatar
MichaelEGR
Senior Developer
Senior Developer
 
Posts: 147
Joined: Thu Jan 21, 2010 5:30 am
Location: San Francisco, CA

Postby turael » Wed Feb 24, 2010 4:46 am

Ahh I get it (I think). overlaying a grid on the camera feed... to show lat/long.

well, I imagine you'd have to draw a normal ole grid on the correct axis (z? been a while since i've done opengl..), and somehow draw that on the camera output. you'd also have to detect tilt of the device and change the opengl viewport accordingly, so the lines "stick" to the earth on the camera output. interesting concept, let us know how you go :D
Nexus.
turael
Freshman
Freshman
 
Posts: 2
Joined: Wed Feb 17, 2010 9:06 am
Location: Perth

Postby r3dknight » Thu Mar 11, 2010 12:32 am

Using lines...
one for the X and the other for the Y or Z
r3dknight
Freshman
Freshman
 
Posts: 7
Joined: Wed Mar 10, 2010 11:45 pm

Top

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

Who is online

Users browsing this forum: No registered users and 2 guests