On Feb 25, 1:10 am, focuser <linto...@gmail.com> wrote:
> My question is how to get those matrices?  I tried gl.glGetIntegerv
> (GL11.GL_MODELVIEW_MATRIX_FLOAT_AS_INT_BITS_OES, model, 0); and
> ((GL11) gl).glGetFloatv(GL11.GL_MODELVIEW_MATRIX, modelf, 0);
>
> but the first one returns an array of zeros, and the other one just
> shows an "method not implemented" error.

I think the second error should probably be taken at face value.

> Is gluUnProject the correct method for this purpose (i.e. window
> coordinates --> object coordinates) ?

Yes, that is the correct method. I think you might have to keep local
copies of your modelview and projection matrices as you modify them
and use the local copies in the calculations (a pain, I know).

--
Jon

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to