Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Problems with MatrixGrabber: java.lang.ClassCastException: com.google.android.gles_jni.GL Impl
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
saex  
View profile  
 More options Feb 17, 4:25 am
From: saex <elpablos...@gmail.com>
Date: Fri, 17 Feb 2012 01:25:21 -0800 (PST)
Local: Fri, Feb 17 2012 4:25 am
Subject: Problems with MatrixGrabber: java.lang.ClassCastException: com.google.android.gles_jni.GLImpl
I have a GLSurfaceView class that must show a square with a texture.
I'm trying to fit the screen with the texture/polygon dimensions, then
i need to use projections.

I'm using 3 classes to have compatibility with android 1.5:

MatrixGrabber.java MatrixStack.java MatrixTrackingGL.java

This is the part of the code that it is giving the error:

private MatrixGrabber mg = new MatrixGrabber(); //create the matrix
grabber object in your initialization code
.
.
.
DisplayMetrics dm = new DisplayMetrics();

((Activity)context).getWindowManager().getDefaultDisplay().getMetrics(dm);
        screenW=dm.widthPixels;
        screenH=dm.heightPixels;

        modelMatrix=mg.mModelView;
        projMatrix=mg.mProjection;
        mView[0] = 0;
        mView[1] = 0;
        mView[2] = screenW; //width
        mView[3] = screenH; //height
.
.
.
public void onDrawFrame(GL10 gl) {
        //Clear Screen And Depth Buffer
        gl.glClear(GL10.GL_COLOR_BUFFER_BIT |
GL10.GL_DEPTH_BUFFER_BIT);
        gl.glLoadIdentity();                    //Reset The Current
Modelview Matrix

        mg.getCurrentProjection(gl);
        mg.getCurrentModelView(gl);
.
.
.

And this is the error:

    02-17 09:13:59.952: WARN/dalvikvm(11405): threadid=8: thread
exiting with uncaught exception (group=0x4001d7e0)
02-17 09:13:59.960: ERROR/AndroidRuntime(11405): FATAL EXCEPTION:
GLThread 9
02-17 09:13:59.960: ERROR/AndroidRuntime(11405):
java.lang.ClassCastException: com.google.android.gles_jni.GLImpl
02-17 09:13:59.960: ERROR/AndroidRuntime(11405):     at
com.DemoMagazine.MatrixGrabber.getMatrix(MatrixGrabber.java:56)
02-17 09:13:59.960: ERROR/AndroidRuntime(11405):     at
com.DemoMagazine.MatrixGrabber.getCurrentProjection(MatrixGrabber.java:
52)
02-17 09:13:59.960: ERROR/AndroidRuntime(11405):     at
com.DemoMagazine.SquareGLSurfaceView.onDrawFrame(SquareGLSurfaceView.java:
112)
02-17 09:13:59.960: ERROR/AndroidRuntime(11405):     at
android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:
1332)
02-17 09:13:59.960: ERROR/AndroidRuntime(11405):     at
android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1116)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »