En, but how can I load the mtl into processing ,I don`t know the structure of the obj and mtl ,and it can only show the color ,but no texture .and I use opengl as the "objimport" example(eg:
- g.glEnable(GL.GL_DEPTH_TEST);
g.glDepthFunc(g.GL_LEQUAL);
g.glColor4f(1.0f,1.0f,1.0f,0.0f);
//g.glBlendFunc(GL.GL_SRC_ALPHA,GL.GL_ONE);
g.glLightfv ( GL.GL_LIGHT1, GL.GL_AMBIENT, light_ambient, 0 );
g.glLightfv ( GL.GL_LIGHT1, GL.GL_DIFFUSE, light_diffuse, 0 );
g.glLightfv ( GL.GL_LIGHT1, GL.GL_SPECULAR, light_specular, 0 );
g.glLightfv ( GL.GL_LIGHT1, GL.GL_POSITION, light_position, 0 );
g.glEnable( GL.GL_LIGHT1 );
g.glEnable( GL.GL_LIGHTING );
g.glEnable( GL.GL_COLOR_MATERIAL );
)but there are no such functions in processing 2.0b8 ,but in processing 1.5.1
and i don`t know "import javax.media.opengl.*; " .what`s the use of it?
thanks~~