//A building with a square footprint and strong horizontals. FLOORS = 50; WIDTH = 13;//width in full window units SIZE = 1.0; //textures win = new UniformTexture(); win.shininess = 1.0f; win.specularity = .35f; win.diffuseColor.setRGB(0.6, 0.6, 0.6); conc = new UniformTexture(); conc.diffuseColor.setRGB(0.75*0.95, 0.73*0.95, 0.65*0.95); //windows box = new Cube(SIZE*WIDTH, FLOORS*SIZE, SIZE*WIDTH); box.setTexture(win, win.getDefaultMapping(box)); p = new Vec3(0.0, FLOORS*SIZE/2, 0.0); script.addObject(box, new CoordinateSystem(p, 0, 0, 0)); //horizontal bars box = new Cube(SIZE*(WIDTH+0.2), SIZE*0.15, SIZE*(WIDTH+0.2)); box.setTexture(conc, conc.getDefaultMapping(box)); for (i=1;i<=FLOORS;i++) { p = new Vec3(0.0, i*SIZE, 0.0); script.addObject(box, new CoordinateSystem(p, 0, 0, 0)); } //vertical bars box = new Cube(SIZE*0.4, SIZE*FLOORS, SIZE*(WIDTH+0.03)); box.setTexture(conc, conc.getDefaultMapping(box)); for (i=0;i