How to detect the area of touch in open gl es in android?
问题 I have designed a 3D model in .obj format and imported using min3d framework. Its a cube with different colors. I want to give a Toast with a message for a particular color when the side of that particular color is touched. How do I do this in android 1.6 ? 回答1: I'm not sure about the particulars in android/OpenGL-es, but in general : You have to calculate a line that starts at the camera's position and passes through the screen coordinate pressed/clicked/etc and determine where that line