[android-developers] Re: how to use gluUnProject

2009-09-21 Thread androidDeveloper
Have you checked the MatrixGrabber? I tried to use the MatrixGrabber, but I got an class Cast Exception in the MatrixGrabber Row 56: private void getMatrix(GL10 gl, int mode, float[] mat) { MatrixTrackingGL gl2 = (MatrixTrackingGL) gl; ...} Does anyone know how to use it? On 8

[android-developers] Re: how to use gluUnProject

2009-09-21 Thread Streets Of Boston
Be sure that the 'gl' you use in your app is actually a MatrixTrackingGL, a wrapper around the GL10 instance returned by the opengl api. Look at the API Demoes source code that comes with the Android SDK. Look at the 'Kube.java' class. On Sep 21, 7:09 am, androidDeveloper

[android-developers] Re: how to use gluUnProject

2009-09-21 Thread androidDeveloper
Thanks. I found the error. The Code example is found in the ApiDemos com.example.android.apis.graphics.spritetext SpriteTextActivity. On 21 Sep., 14:56, Streets Of Boston flyingdutc...@gmail.com wrote: --~--~-~--~~~---~--~~ You received this message because you

[android-developers] Re: how to use gluUnProject

2009-09-21 Thread Robert Green
If you want to pick a rendered object, just check for collisions with a primitive bounding box and a casted ray. 1) Keep a copy of the matrix you use for the projection. 2) Implement this, using that matrix that you kept. For iPhone but easily portable to Android, so long as you know that you

[android-developers] Re: how to use gluUnProject

2009-09-08 Thread Streets Of Boston
Look for MatrixGrabber.java and MatrixTrackingGL.java in the 'API Demoes' that comes with the Android SDK. On Sep 7, 11:11 am, Gameboy r59...@gmail.com wrote: I'm trying to use gluUnProject for checking touch selection on a 3D object, but seems I can not do with current 1.5 emulator. The