//A building loosely based on one proposed, but not built, at the Provo Utah MTC. SIZE = 1.0; HEIGHT = 35;//height in floors, should be an integer>3 //textures window = new UniformTexture(); window.diffuseColor.setRGB(0.5,0.5,0.5); window.specularity = 0.7f; window.shininess = 1.0f; brick = new UniformTexture(); brick.diffuseColor.setHSV(33.0f,0.72f,0.39f); bar = new UniformTexture(); bar.diffuseColor.setRGB(0.4,0.4,0.6); white = new UniformTexture(); white.diffuseColor.setRGB(0.8,0.8,0.8); //central block box = new Cube(11*SIZE, SIZE*HEIGHT,6.8*SIZE); box.setTexture(window, window.getDefaultMapping(box)); pos = new Vec3(0,SIZE*HEIGHT/2,0); script.addObject(box, new CoordinateSystem(pos, 0,0,0)); for(i=-5;i<5;i++) { box = new Cube(0.3*SIZE, SIZE*(HEIGHT-3), 6.95*SIZE); box.setTexture(bar, bar.getDefaultMapping(box)); pos = new Vec3(SIZE*i+SIZE/2, SIZE*(HEIGHT-3)/2, 0); script.addObject(box, new CoordinateSystem(pos, 0,0,0)); } for (i=0;i