Re: [android-developers] Incorrect output values with gluUnProject… why?

2011-11-07 Thread Latimerius
I haven't ever used gluUnProject() myself but unless your geometry is glued right to the near plane I'm pretty sure it's wrong to pass zero for your window space Z. Unless you have special knowledge of your Z I guess you'll need to read that value from the depth buffer. On Mon, Nov 7, 2011 at 5:3

Re: [android-developers] Incorrect output values with gluUnProject… why?

2011-11-07 Thread Daniel Drozdzewski
You coordinates are wrong for the screen/window coordinates, but how do you know that those are not the object coordinates? Daniel On 7 November 2011 16:34, saex wrote: > I have a simple Square with openGL es 1 and Android 1.5. The square is > painted on the center of the screen. > > I want tha

[android-developers] Incorrect output values with gluUnProject… why?

2011-11-07 Thread saex
I have a simple Square with openGL es 1 and Android 1.5. The square is painted on the center of the screen. I want that when the user press on the screen, or moves the finger on the screen, the square get's moved to that position. For do this i tryed with GLuUnProject, i tryed to obtain the opengl