We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpOpenGL and 3D Libraries › Problem with the library 'saito.objloader.OBJModel
Page Index Toggle Pages: 1
Problem with the library 'saito.objloader.OBJModel (Read 444 times)
Problem with the library 'saito.objloader.OBJModel
Jul 12th, 2009, 10:27am
 
This library does'nt works correctly.
The texture does'nt appear !!

The object 'obj' is drawn correctly, but the texture 'phobos.jpg' doesn't appear !!

Thank's for your help.

 stroke(128,128,128);
 lights();

 pushMatrix();
 translate(720, 450, 0);
 scale(25.0f);

 model = new saito.objloader.OBJModel(this, "3ds/phobos.obj");
 model.drawMode(TRIANGLES);
 model.enableTexture();
 model.enableLocalTexture();
 model.setTexture(loadImage("texture/phobos.jpg"));

 model.draw();
 popMatrix();
Page Index Toggle Pages: 1