Search for 'gluUnproject' on this forum. You'll find plenty of info for mapping 2D touch-screen coords to your 3D world-coords.
There is still work left to figure out what is being picked given 3D world-coords: Map the (sx,sy,0) screen coordinate (close plane) to the 3D world- coord (wx1, wy1, wz1) using gluUnproject. Map the (sx,sy,1) screen coordinate (far plane) to the 3D word-coord (wx2, wy2, wz2) using gluUnproject. Then create a line from (wx1, wy1, wz1) to (wx2, wy2, wz2). Then calculate the earliest point on that line that intersects an object in your 3D world. That is the object the user picks. Brush up on your geometry classes, open up those books again from class or google around a bit. :) On Oct 28, 11:14 am, TreKing <[email protected]> wrote: > On Thu, Oct 28, 2010 at 5:12 AM, Lukasz.Iwanski > <[email protected]>wrote: > > > well.. huge problem with selecting object in 3D space by gluUnProject.. > > actually still have. > > That's usually termed "picking" and there should be a ton of info on the > interwebs. Besides that, you still have not provided a specific issue you're > having trouble with besides the broad "basically I need allow user to use > Kube" statement, so you're not going to get much more help. > > ------------------------------------------------------------------------------------------------- > TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago > transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

