/*A building simmilar to the fox plaza in LA.*/ FLOORS = 115; SIZE = 1.0; YSIZE = 1.2; void block(double xsize, double zsize, double starty, double height, double angle) { //textures conc = new UniformTexture(); conc.diffuseColor.setRGB(0.8, 0.7, 0.5); win = new UniformTexture(); win.specularity = 0.3f; win.shininess = 1.0f; win.diffuseColor.setRGB(0.75, 0.75, 0.75); //window box = new Cube(xsize, height, zsize); box.setTexture(win, win.getDefaultMapping(box)); p = new Vec3(0.0, height/2.0+starty, 0.0); script.addObject(box, new CoordinateSystem(p, 0, angle, 0)); //horizontal bars box = new Cube(xsize+SIZE*0.3, YSIZE/2.0, zsize+SIZE*0.3); box.setTexture(conc, conc.getDefaultMapping(box)); y = 0; while (y<=height) { p = new Vec3(0.0, y+YSIZE/4.0+starty, 0.0); script.addObject(box, new CoordinateSystem(p, 0, angle, 0)); y = y + YSIZE; } } block(SIZE*16, SIZE*12, YSIZE*(FLOORS-12), YSIZE*12, 0.0); block(SIZE*12, SIZE*16, YSIZE*(FLOORS-12), YSIZE*12, 0.0); block(SIZE*20, SIZE*18, 0.0, YSIZE*(FLOORS-12), 0.0); block(SIZE*18, SIZE*20, 0.0, YSIZE*(FLOORS-12), 0.0); block(SIZE*17, SIZE*18, 0.0, YSIZE*(FLOORS-4), 45.0); block(SIZE*18, SIZE*17, 0.0, YSIZE*(FLOORS-4), 45.0); block(SIZE*5, SIZE*5, YSIZE*FLOORS, YSIZE*5, 45.0);