OpengGL ES Mouse/Touch Events

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

OpengGL ES Mouse/Touch Events

Postby Jbeer » Wed Jan 14, 2009 10:34 am

Hi Everybody!

I would like to know, if there is any way with the actual Android
OpenGL API, to capture mouse/touch events.

The idea is the following:

I have some 3D objects drawn in a space. I want to:

- select one object or
- know where I have clicked or
- assign an ID or a name to an object to use it in forward code.

Is it possible?

Thanks
Jbeer
Junior Developer
Junior Developer
 
Posts: 14
Joined: Tue Jul 22, 2008 8:07 am
Location: España

Top

Postby Ultrano » Fri Jan 16, 2009 8:54 pm

Possible, but look at the www.opengl.org forums for the solutions.
Ultrano
Junior Developer
Junior Developer
 
Posts: 16
Joined: Sat Dec 20, 2008 12:53 am

Postby mortefer » Sun Jan 18, 2009 9:47 pm

I think i gave a pretty good explanation here. Anyways it works fine for me, works fast and causes no frame dropping.
mortefer
Experienced Developer
Experienced Developer
 
Posts: 54
Joined: Sat Dec 20, 2008 11:24 am

Postby teric » Sat May 30, 2009 10:23 am

Hi mortefer,

could you please elaborate this a bit, codewise? :D

This fake frustum stuff seems to be the way to go, but I didn't managed to get it run :(

Thanks a lot in advance,
teric
teric
Once Poster
Once Poster
 
Posts: 1
Joined: Thu Jan 24, 2008 4:37 pm

Postby mortefer » Sat May 30, 2009 9:50 pm

Hye mate,
I would recommend reading this. I gave up "fake" frustum long time ago - because of some issue with that - but simply implemented what was written in the article i gave link before. Btw lighthouse is pretty good site for 3D stuff.

Take care, email me if any questions arise
mortefer
Experienced Developer
Experienced Developer
 
Posts: 54
Joined: Sat Dec 20, 2008 11:24 am

Top

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

Who is online

Users browsing this forum: No registered users and 2 guests