// SphereDetailUV // 2008-08-01 davebollinger void setup() { size(200,200,P3D); } void draw() { background(0); fill(128,192,255); stroke(32,64,128); lights(); float r = 40f; // top row demos low-resolution non-equal UV pushMatrix(); translate(width/4f, height/4f); rotateY(radians(frameCount)); sphereDetail(4,2); sphere(r); popMatrix(); pushMatrix(); translate(width*3f/4f, height/4f); rotateY(radians(frameCount)); sphereDetail(6,4); sphere(r); popMatrix(); // bottom row compares 1:1 versus 2:1 UV at medium resolution pushMatrix(); translate(width/4f, height*3f/4f); rotateY(radians(frameCount)); sphereDetail(12); sphere(r); popMatrix(); pushMatrix(); translate(width*3f/4f, height*3f/4f); rotateY(radians(frameCount)); sphereDetail(24,12); sphere(r); popMatrix(); }