//a building based loosely on the Federal Court building in Sacramento SIZE = 1.0; FLOORS = 18; //even number //textures win = new UniformTexture(); win.diffuseColor.setRGB(0.7,0.72,0.8); win.specularity = 0.5f; win.shininess = 1.0f; conc = new UniformTexture(); conc.diffuseColor.setRGB(0.6,0.43,0.36); steel = new UniformTexture(); steel.diffuseColor.setRGB(0.6,0.6,0.6); //adjust values FLOORS = FLOORS - 2; //box box = new Cube(26*SIZE,SIZE*(FLOORS+3),8*SIZE); box.setTexture(win, win.getDefaultMapping(box)); pos = new Vec3(0,SIZE*(FLOORS+3)/2.0,0); script.addObject(box, new CoordinateSystem(pos, 0,0,0)); //verticals box = new Cube(0.5*SIZE,SIZE*FLOORS,0.2*SIZE); box.setTexture(conc, conc.getDefaultMapping(box)); for (i=-12;i<13;i++) { pos = new Vec3(i*SIZE,SIZE*FLOORS/2.0,-4*SIZE); script.addObject(box, new CoordinateSystem(pos, 0,0,0)); } for (i=-3;i<4;i++) { pos = new Vec3(-13*SIZE,SIZE*FLOORS/2.0,i*SIZE); script.addObject(box, new CoordinateSystem(pos, 0,90,0)); pos = new Vec3(13*SIZE,SIZE*FLOORS/2.0,i*SIZE); script.addObject(box, new CoordinateSystem(pos, 0,90,0)); } //horizontals box = new Cube(26.15*SIZE,0.35*SIZE,8.15*SIZE); box.setTexture(conc, conc.getDefaultMapping(box)); for (i=0;i