OutofMemory error when loading .obj on android device

edited October 2013 in Android Mode

When i use loadShape() and shape() to draw an .obj file, if the obj file is too big, it will present the OutofMemory error running on an android device(but works well in java mode), i wonder how to solve this problem?
Thx for your help!
following is the debug:
FATAL EXCEPTION: GLThread 7896 java.lang.OutOfMemoryError at processing.opengl.PGraphics3D.createShapeImpl(Unknown Source) at processing.opengl.PShapeOpenGL.createShape3D(Unknown Source) at processing.opengl.PShapeOpenGL.copyGroup3D(Unknown Source) at processing.opengl.PShapeOpenGL.createShape3D(Unknown Source) at processing.opengl.PGraphics3D.loadShapeImpl(Unknown Source) at processing.opengl.PGraphicsOpenGL.loadShape(Unknown Source) at processing.core.PApplet.loadShape(Unknown Source) at processing.test.sketch_131008ab.sketch_131008ab.setup(sketch_131008ab.java:29) at processing.core.PApplet.handleDraw(Unknown Source) at processing.opengl.PGL$AndroidRenderer.onDrawFrame(Unknown Source) at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1462) at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1216)

Answers

Sign In or Register to comment.