Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - weeman

Pages: [1]
1
Support / Re: Runtime exception when changed to Opengl ES 2.0
« on: October 22, 2012, 06:16:25 pm »
Thanks man, i got it working. To be more specific, here is what i did:

- I put the jpct_shaders.zip file in the res/raw directory.
- I added this line right after initializing the GLSurfaceView:
Code: [Select]
mGLView.setEGLContextClientVersion(2);

- Finally, i added this lines right before initializing the FrameBuffer:
Code: [Select]
ShaderLocator sl = new ShaderLocator(demo.getResources(),R.raw.jpct_shaders);
GLSLShader.setShaderLocator(sl);

That's all. Thank you very much.

2
Support / Re: Runtime exception when changed to Opengl ES 2.0
« on: October 20, 2012, 08:44:38 pm »
Here it is:

Code: [Select]
10-20 15:41:10.795: E/AndroidRuntime(27988): java.lang.RuntimeException: [ 1350758470788 ] - ERROR: java.lang.RuntimeException: [ 1350758470784 ] - ERROR: java.lang.RuntimeException: [ 1350758470778 ] - ERROR: java.lang.RuntimeException: [ 1350758470773 ] - ERROR: Couldn't read file from InputStream
10-20 15:41:10.795: E/AndroidRuntime(27988): at com.threed.jpct.Logger.log(Logger.java:189)
10-20 15:41:10.795: E/AndroidRuntime(27988): at com.threed.jpct.Loader.loadBinaryFile(Loader.java:1073)
10-20 15:41:10.795: E/AndroidRuntime(27988): at com.threed.jpct.Loader.loadTextFile(Loader.java:67)
10-20 15:41:10.795: E/AndroidRuntime(27988): at com.threed.jpct.Loader.loadTextFile(Loader.java:57)
10-20 15:41:10.795: E/AndroidRuntime(27988): at com.threed.jpct.ShaderLocator.loadFromJar(ShaderLocator.java:90)
10-20 15:41:10.795: E/AndroidRuntime(27988): at com.threed.jpct.ShaderLocator.getShaderCode(ShaderLocator.java:51)
10-20 15:41:10.795: E/AndroidRuntime(27988): at com.threed.jpct.GLSLShader.<init>(GLSLShader.java:235)
10-20 15:41:10.795: E/AndroidRuntime(27988): at com.threed.jpct.GL20.<init>(GL20.java:117)
10-20 15:41:10.795: E/AndroidRuntime(27988): at java.lang.Class.newInstanceImpl(Native Method)
10-20 15:41:10.795: E/AndroidRuntime(27988): at java.lang.Class.newInstance(Class.java:1319)
10-20 15:41:10.795: E/AndroidRuntime(27988): at com.threed.jpct.GLRenderer.init(GLRenderer.java:374)
10-20 15:41:10.795: E/AndroidRuntime(27988): at com.threed.jpct.GLRenderer.init(GLRenderer.java:364)
10-20 15:41:10.795: E/AndroidRuntime(27988): at com.threed.jpct.FrameBuffer.<init>(FrameBuffer.java:90)
10-20 15:41:10.795: E/AndroidRuntime(27988): at com.threed.jpct.FrameBuffer.<init>(FrameBuffer.java:115)
10-20 15:41:10.795: E/AndroidRuntime(27988): at com.threed.jpct.example.MyRenderer.onSurfaceChanged(MyRenderer.java:88)
10-20 15:41:10.795: E/AndroidRuntime(27988): at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1455)
10-20 15:41:10.795: E/AndroidRuntime(27988): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1216)
10-20 15:41:10.795: E/AndroidRuntime(27988): at com.threed.jpct.Logger.log(Logger.java:189)
10-20 15:41:10.795: E/AndroidRuntime(27988): at com.threed.jpct.Logger.log(Logger.java:148)
10-20 15:41:10.795: E/AndroidRuntime(27988): at com.threed.jpct.GLSLShader.<init>(GLSLShader.java:258)
10-20 15:41:10.795: E/AndroidRuntime(27988): at com.threed.jpct.GL20.<init>(GL20.java:117)
10-20 15:41:10.795: E/AndroidRuntime(27988): at java.lang.Class.newInstanceImpl(Native Method)
10-20 15:41:10.795: E/AndroidRuntime(27988): at java.lang.Class.newInstance(Class.java:1319)
10-20 15:41:10.795: E/AndroidRuntime(27988): at com.threed.jpct.GLRenderer.init(GLRenderer.java:374)
10-20 15:41:10.795: E/AndroidRuntime(27988): at com.threed.jpct.GLRenderer.init(GLRenderer.java:364)
10-20 15:41:10.795: E/AndroidRuntime(27988): at com.threed.jpct.FrameBuffer.<init>(FrameBuffer.java:90)
10-20 15:41:10.795: E/AndroidRuntime(27988): at com.threed.jpct.FrameBuffer.<init>(FrameBuffer.java:115)
10-20 15:41:10.795: E/AndroidRuntime(27988): at com.threed.jpct.example.MyRenderer.onSurfaceChanged(MyRenderer.java:88)
10-20 15:41:10.795: E/AndroidRuntime(27988): at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1455)
10-20 15:41:10.795: E/AndroidRuntime(27988): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1216)
10-20 15:41:10.795: E/AndroidRuntime(27988): at com.threed.jpct.Logger.log(Logger.java:189)
10-20 15:41:10.795: E/AndroidRuntime(27988): at com.threed.jpct.Logger.log(Logger.java:136)
10-20 15:41:10.795: E/AndroidRuntime(27988): at com.threed.jpct.GLRenderer.init(GLRenderer.java:376)
10-20 15:41:10.795: E/AndroidRuntime(27988): at com.threed.jpct.GLRenderer.init(GLRenderer.java:364)
10-20 15:41:10.795: E/AndroidRuntime(27988): at com.threed.jpct.FrameBuffer.<init>(FrameBuffer.java:90)
10-20 15:41:10.795: E/AndroidRuntime(27988): at com.threed.jpct.FrameBuffer.<init>(FrameBuffer.java:115)
10-20 15:41:10.795: E/AndroidRuntime(27988): at com.threed.jpct.example.MyRenderer.onSurfaceChanged(MyRenderer.java:88)
10-20 15:41:10.795: E/AndroidRuntime(27988): at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1455)
10-20 15:41:10.795: E/AndroidRuntime(27988): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1216)
10-20 15:41:10.795: E/AndroidRuntime(27988): at com.threed.jpct.Logger.log(Logger.java:189)
10-20 15:41:10.795: E/AndroidRuntime(27988): at com.threed.jpct.Logger.log(Logger.java:148)
10-20 15:41:10.795: E/AndroidRuntime(27988): at com.threed.jpct.FrameBuffer.<init>(FrameBuffer.java:92)
10-20 15:41:10.795: E/AndroidRuntime(27988): at com.threed.jpct.FrameBuffer.<init>(FrameBuffer.java:115)
10-20 15:41:10.795: E/AndroidRuntime(27988): at com.threed.jpct.example.MyRenderer.onSurfaceChanged(MyRenderer.java:88)
10-20 15:41:10.795: E/AndroidRuntime(27988): at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1455)
10-20 15:41:10.795: E/AndroidRuntime(27988): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1216)

I'm not using the emulator, i'm using a samsung galaxy sII.

3
Support / Re: Runtime exception when changed to Opengl ES 2.0
« on: October 18, 2012, 01:49:33 am »
I have the exact same problem, but with the new version (1.25).

Can anyone help me?

Pages: [1]