We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi everyone, I've installed Android Mode 3.0.2 through the IDE. It doesn't work when I work with images with parallax and alpha channel, but it does if I draw an ellipse. I am trying the sketch in the device.
I noticed I need to put fullScreen between settings, because otherwise it crashes from the begining.
1- As soon as I change the orientation it crashes, no messages, it stops working.
void settings(){
fullScreen();
}
2- With this, it doesn't even start.
void settings(){
fullScreen(P2D);
}
It throws the following errors: _KetaiSensor: start()... Ignoring <#text> tag. FATAL EXCEPTION: GLThread 2841 Process: processing.test.aceleforce, PID: 22321 java.lang.ArrayIndexOutOfBoundsException: length=480000; index=480000 at processing.opengl.Texture.convertToRGBA(Unknown Source) at processing.opengl.Texture.set(Unknown Source) at processing.opengl.Texture.set(Unknown Source) at processing.opengl.PGraphicsOpenGL.initCache(Unknown Source) at processing.opengl.PGraphicsOpenGL.getTexture(Unknown Source) at processing.opengl.PGraphicsOpenGL$TexCache.getTexture(Unknown Source) at processing.opengl.PGraphicsOpenGL.flushPolys(Unknown Source) at processing.opengl.PGraphicsOpenGL.flush(Unknown Source) at processing.opengl.PGraphicsOpenGL.endDraw(Unknown Source) at processing.core.PApplet.handleDraw(Unknown Source) at processing.opengl.PGLES$AndroidRenderer.onDrawFrame(Unknown Source) at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1523) at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240) _
I put Fullscreen in the manifest file. I appreciate any ideas, thanks!.
PD:Which is the faster way to render images with parallax?
Answers
Ok let's see if I have more luck. I tested the example that is in the Processing Android page:
I got the following error and the app doesn't even start:
I had to modify the code and put
size(displayWidth, displayHeight);
instead and it works fine.Processing version: 3.2.3
Android Mode: 3.0.2 (installed through the IDE)
Target SDK: API 6.0 (23)
OS: Ubuntu 12.04 64 bits
Hope I could have any hint to solve this.