Thanks for replies.

but the thing is.. everyone says that. there is a plenty of info. I
am  familiar with the idea however I have a problem with
implementation of gluUnproject into Kube project in Android API
example (included in SDK)..

My question is.. is there any simple example program that I could read
through?

or better question is there any tutorial that learn how to do that in
correct way?


Thanks,
Luke

On Oct 28, 4:36 pm, Streets Of Boston <[email protected]> wrote:
> Search for 'gluUnproject' on this forum.
> You'll find plenty of info for mapping 2D touch-screen coords to 
> your3Dworld-coords.
>
> There is still work left to figure out what is being picked given3D
> world-coords:
>
> Map the (sx,sy,0) screen coordinate (close plane) to the3Dworld-
> coord (wx1, wy1, wz1) using gluUnproject.
> Map the (sx,sy,1) screen coordinate (far plane) to the3Dword-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 your3Dworld. 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 in3Dspace 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

Reply via email to