surfaceView.setPreserveEGLContextOnPause(true);surfaceView.setEGLContextClientVersion(2);surfaceView.setEGLConfigChooser(8,8,8,8,16,0);// Alpha used for plane blending.// 设置GLSurfaceView#RenderersurfaceView.setRenderer(this);surfaceView.setRenderMode(GLSurfaceView.RENDERMODE_CONTINUOUSLY);surfaceView.setWillNotDraw(false);
调用ObjUtils#convertToRenderable(obj), 准备obj文件并确定适合OpenGL的渲染, 经过1). Triangulate it, 2). Make sure that texture coordinates are not ambiguous, 3). Make sure that normals are not ambiguous, 4). Convert it to single-indexed data