import saito.objloader.*; OBJModel model; void setup() { size(400,400,P3D); model=new OBJModel(this); model.load("macbook.obj"); noStroke(); } void draw(){ background(50); directionalLight(200, 200, 200, -1, 1, -1); ambientLight(200, 200, 200); translate(width/2,height/2,0); scale(200); rotateX(PI*mouseY/height); rotateZ(PI*mouseX/width-HALF_PI); model.drawMode(TRIANGLES); model.draw(); }