//A simple building with strong verticals. FLOORS = 65; WIDTH = 15; SIZE = 1.0; //textures win = new UniformTexture(); win.shininess = 1.0f; win.specularity = .35f; win.diffuseColor.setRGB(0.8, 0.8, 0.8); conc = new UniformTexture(); conc.diffuseColor.setRGB(0.95*0.7, 0.9*0.7, 0.85*0.7); conc2 = new UniformTexture(); conc2.diffuseColor.setRGB(0.95*0.6, 0.9*0.6, 0.85*0.6); //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.1), SIZE*0.1, SIZE*(WIDTH+0.1)); 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.6, SIZE*FLOORS, SIZE*(WIDTH+0.1)); box.setTexture(conc2, conc2.getDefaultMapping(box)); det = new Cube(SIZE*0.3, SIZE*FLOORS, SIZE*(WIDTH+0.15)); det.setTexture(conc, conc.getDefaultMapping(det)); for (i=0;i