void setup() { size(800, 400,P3D); stroke(255); strokeWeight(3); background(192, 64, 0); } void draw() { ReadShape toto=new ReadShape("snub_icosidodecahedron.off",75); ReadShape titi=new ReadShape("cuboctahedron.off",75); background(192, 64, 0); directionalLight(255,255,255, -1, 1, 0); directionalLight(255,255,255, -1, 1, -1); //lights(); fill(0,0,255); stroke(255,255,255); translate(width/2, height/2); pushMatrix(); translate(width/6,0); rotateX(frameCount*PI/185); rotateY(frameCount*PI/-200); toto.readData(); popMatrix(); pushMatrix(); translate(-width/6,0); rotateX(frameCount*PI/195); rotateY(frameCount*PI/-90); titi.readData(); popMatrix(); }