[android-developers] Re: Kube example with simple 3D object select

2010-10-28 Thread Lukasz.Iwanski
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  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  wrote:
>
>
>
>
>
>
>
> > On Thu, Oct 28, 2010 at 5:12 AM, Lukasz.Iwanski 
> > 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  - 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Kube example with simple 3D object select

2010-10-28 Thread Streets Of Boston
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  wrote:
> On Thu, Oct 28, 2010 at 5:12 AM, Lukasz.Iwanski 
> 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  - 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Kube example with simple 3D object select

2010-10-28 Thread TreKing
On Thu, Oct 28, 2010 at 5:12 AM, Lukasz.Iwanski 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  - 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Kube example with simple 3D object select

2010-10-28 Thread Lukasz.Iwanski
Thanks Robert

Appreciate that,

Luke

@TreKing

well.. huge problem with selecting object in 3D space by
gluUnProject.. actually still have.

On Oct 22, 5:20 pm, Robert Green  wrote:
> Luke,
>
> Read these.
>
> http://groups.google.com/group/android-developers/browse_thread/threa...http://groups.google.com/group/android-developers/browse_thread/threa...
>
> On Oct 22, 10:52 am, TreKing  wrote:
>
>
>
>
>
>
>
> > On Tue, Oct 19, 2010 at 3:20 AM, Lukasz.Iwanski 
> > wrote:
>
> > > I have done research.. but I have huge problem with that.
>
> > Huge problem with what?http://www.catb.org/esr/faqs/smart-questions.html
>
> > --- 
> > --
> > 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Kube example with simple 3D object select

2010-10-22 Thread Robert Green
Luke,

Read these.

http://groups.google.com/group/android-developers/browse_thread/thread/6243785d31f904d7/155df9bc386bb0ad?lnk=gst&q=3d+selection#155df9bc386bb0ad
http://groups.google.com/group/android-developers/browse_thread/thread/3b9ab1117971fe11/65e1376de2b698e3?lnk=gst&q=3d+selection#65e1376de2b698e3

On Oct 22, 10:52 am, TreKing  wrote:
> On Tue, Oct 19, 2010 at 3:20 AM, Lukasz.Iwanski 
> wrote:
>
> > I have done research.. but I have huge problem with that.
>
> Huge problem with what?http://www.catb.org/esr/faqs/smart-questions.html
>
> --- 
> --
> 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en