Author Topic: revert to OpenGL ES 1.1  (Read 2531 times)

Offline guillaume

  • int
  • **
  • Posts: 67
    • View Profile
revert to OpenGL ES 1.1
« on: April 05, 2012, 05:07:48 am »
I enable OpenGL ES 2.0 on my apps with
   <uses-feature android:glEsVersion="0x00020000" android:required="true" >
and setEGLContextClientVersion(2);

and when I want to revert to OpenGL ES 1.1 , I commented out them,
but jPCT seems still loading shaders and called unimplement OpenGL  ES 2.0 api.

log follows,
Code: [Select]
04-05 11:17:53.607: D/dalvikvm(3100): GC_EXPLICIT freed 4 objects / 128 bytes in 48ms
04-05 11:17:53.787: I/jPCT-AE(3100): texture: board4.jpg loaded.
04-05 11:17:54.779: D/libEGL(3100): loaded /system/lib/egl/libGLES_android.so
04-05 11:17:54.795: D/libEGL(3100): loaded /system/lib/egl/libEGL_POWERVR_SGX530_121.so
04-05 11:17:54.802: D/libEGL(3100): loaded /system/lib/egl/libGLESv1_CM_POWERVR_SGX530_121.so
04-05 11:17:54.818: D/libEGL(3100): loaded /system/lib/egl/libGLESv2_POWERVR_SGX530_121.so
04-05 11:17:55.576: D/dalvikvm(3100): GC_EXTERNAL_ALLOC freed 136 objects / 6960 bytes in 58ms
04-05 11:17:55.607: I/dalvikvm(3100): Could not find method android.opengl.GLES20.glVertexAttribPointer, referenced from method com.threed.jpct.GL20.glColorPointer
04-05 11:17:55.607: W/dalvikvm(3100): VFY: unable to resolve static method 132: Landroid/opengl/GLES20;.glVertexAttribPointer (IIIZII)V
04-05 11:17:55.607: D/dalvikvm(3100): VFY: replacing opcode 0x77 at 0x0010
04-05 11:17:55.607: I/dalvikvm(3100): Could not find method android.opengl.GLES20.glDrawElements, referenced from method com.threed.jpct.GL20.glDrawElements
04-05 11:17:55.607: W/dalvikvm(3100): VFY: unable to resolve static method 66: Landroid/opengl/GLES20;.glDrawElements (IIII)V
04-05 11:17:55.607: D/dalvikvm(3100): VFY: replacing opcode 0x71 at 0x0000
04-05 11:17:55.607: D/dalvikvm(3100): VFY: dead code 0x0003-0003 in Lcom/threed/jpct/GL20;.glDrawElements (IIII)V
04-05 11:17:55.615: I/dalvikvm(3100): Could not find method android.opengl.GLES20.glVertexAttribPointer, referenced from method com.threed.jpct.GL20.glNormalPointer
04-05 11:17:55.615: W/dalvikvm(3100): VFY: unable to resolve static method 132: Landroid/opengl/GLES20;.glVertexAttribPointer (IIIZII)V
04-05 11:17:55.615: D/dalvikvm(3100): VFY: replacing opcode 0x77 at 0x0010
04-05 11:17:55.615: I/dalvikvm(3100): Could not find method android.opengl.GLES20.glVertexAttribPointer, referenced from method com.threed.jpct.GL20.glTexCoordPointer
04-05 11:17:55.615: W/dalvikvm(3100): VFY: unable to resolve static method 132: Landroid/opengl/GLES20;.glVertexAttribPointer (IIIZII)V
04-05 11:17:55.615: D/dalvikvm(3100): VFY: replacing opcode 0x77 at 0x0018
04-05 11:17:55.615: I/dalvikvm(3100): Could not find method android.opengl.GLES20.glVertexAttribPointer, referenced from method com.threed.jpct.GL20.glVertexPointer
04-05 11:17:55.615: W/dalvikvm(3100): VFY: unable to resolve static method 132: Landroid/opengl/GLES20;.glVertexAttribPointer (IIIZII)V
04-05 11:17:55.623: D/dalvikvm(3100): VFY: replacing opcode 0x77 at 0x0010
04-05 11:17:55.623: I/dalvikvm(3100): Could not find method android.opengl.GLES20.glVertexAttribPointer, referenced from method com.threed.jpct.GL20.setTangents
04-05 11:17:55.623: W/dalvikvm(3100): VFY: unable to resolve static method 132: Landroid/opengl/GLES20;.glVertexAttribPointer (IIIZII)V
04-05 11:17:55.623: D/dalvikvm(3100): VFY: replacing opcode 0x77 at 0x001f
04-05 11:17:55.693: I/jPCT-AE(3100): Initializing GL20 render pipeline...
04-05 11:17:55.693: I/jPCT-AE(3100): Support for VBO when running OpenGL ES 2.0 is faulty in Android 2.2...VBO will be disabled!
04-05 11:17:55.693: I/jPCT-AE(3100): Accessing shaders via JAR!
04-05 11:17:55.693: I/jPCT-AE(3100): Loading default shaders !
04-05 11:17:55.693: I/jPCT-AE(3100): 0 shaders in replacement map!
04-05 11:17:55.693: I/jPCT-AE(3100): Default fragment shader is: /defaultFragmentShader.src
04-05 11:17:56.412: I/jPCT-AE(3100): Loading file from InputStream
04-05 11:17:56.412: I/jPCT-AE(3100): Text file from InputStream loaded...2008 bytes
04-05 11:17:56.420: I/jPCT-AE(3100): Default vertex shader is: /defaultVertexShader.src
04-05 11:17:56.420: I/jPCT-AE(3100): Loading file from InputStream
04-05 11:17:56.427: I/jPCT-AE(3100): Text file from InputStream loaded...3897 bytes
04-05 11:17:56.427: I/jPCT-AE(3100): Compiling shader program!
04-05 11:17:56.435: E/libEGL(3100): called unimplemented OpenGL ES API
04-05 11:17:56.435: E/libEGL(3100): called unimplemented OpenGL ES API
04-05 11:17:56.435: E/libEGL(3100): called unimplemented OpenGL ES API
04-05 11:17:56.435: E/libEGL(3100): called unimplemented OpenGL ES API
04-05 11:17:56.435: E/libEGL(3100): called unimplemented OpenGL ES API
04-05 11:17:56.435: I/jPCT-AE(3100): Could not compile shader 35633:
04-05 11:17:56.435: E/libEGL(3100): called unimplemented OpenGL ES API
04-05 11:17:56.435: I/jPCT-AE(3100): [ 1333595876439 ] - ERROR: Failed to load and compile vertex shaders!
04-05 11:17:56.435: I/jPCT-AE(3100): [ 1333595876439 ] - WARNING: Unable to load shader!
04-05 11:17:56.482: I/jPCT-AE(3100): [ 1333595876484 ] - ERROR: java.lang.RuntimeException: [ 1333595876439 ] - ERROR: Failed to load and compile vertex shaders!
04-05 11:17:56.482: I/jPCT-AE(3100): at com.threed.jpct.Logger.log(Logger.java:189)
04-05 11:17:56.482: I/jPCT-AE(3100): at com.threed.jpct.GLSLShader.loadProgram(GLSLShader.java:655)
04-05 11:17:56.482: I/jPCT-AE(3100): at com.threed.jpct.GLSLShader.<init>(GLSLShader.java:254)
04-05 11:17:56.482: I/jPCT-AE(3100): at com.threed.jpct.GL20.<init>(GL20.java:118)
04-05 11:17:56.482: I/jPCT-AE(3100): at java.lang.Class.newInstanceImpl(Native Method)
04-05 11:17:56.482: I/jPCT-AE(3100): at java.lang.Class.newInstance(Class.java:1429)
04-05 11:17:56.482: I/jPCT-AE(3100): at com.threed.jpct.GLRenderer.init(GLRenderer.java:368)


 

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12092
    • View Profile
    • http://www.jpct.net
Re: revert to OpenGL ES 1.1
« Reply #1 on: April 05, 2012, 09:01:38 am »
You have to use the proper constructor for FrameBuffer. For 1.1, use the one that takes the gl context.

Offline guillaume

  • int
  • **
  • Posts: 67
    • View Profile
Re: revert to OpenGL ES 1.1
« Reply #2 on: April 05, 2012, 10:31:56 am »
thanks.  :)