####################################################################################### ## ## ## This scene defines the standard "Cornell Box"... with a few caveats. ## ## Caveats: ## ## 1) The light color is defined in arbitrary RGB units rather than ## ## the physically measured spectrum described on the Cornell Box page ## ## (http://www.graphics.cornell.edu/online/box/data.html) ## ## 2) The light is defined as a point (instead of a quad with points ## ## of (343,548.7,227), (343,548.7,332), (213,548.7,332) and (213,548.7,227) ## ## and a surface normal of (0,-1,0)) ## ## 3) Materials are defined with RGB approximations to their spectral ## ## reflectance, not the 4 nm sampled spectra on the web page. ## ## ## ## Chris Wyman (1/9/2007) ## ####################################################################################### # Setup a camera to view the scene camera eye 278 273 -800 up 0 1 0 at 278 273 -799 fovy 38.5 res 512 512 end # The center point on the quad light in the measured Cornell Box (moved down 0.1 units # from the ceiling, to avoid numerical errors). The light uses arbitrary RGB units # rather than a physically measured spectrum. light point pos 278 548.7 279.5 color 1 0.85 0.43 end # The following three colors are RGB approximations to the spectral measurements of the # white, red, and green paints used in the Cornell Box. material lambertian white color 0.76 0.75 0.5 end material lambertian red color 0.63 0.06 0.04 end material lambertian green color 0.15 0.48 0.09 end ####################################################################################### ## ## ## Following this point is the geometry for the Cornell Box (minus the light). This ## ## should not need to be changed to 1) add spectral colors or 2) make the units ## ## physically based. The ceiling geometry may need to be changed to make the ## ## light and ceiling co-planar, however. ## ## ## ####################################################################################### # The floor (2 triangles) object tri floor1 v0 556 0 0 v1 0 0 0 v2 0 0 559.2 material white end object tri floor2 v0 556 0 0 v1 0 0 559.2 v2 556 0 559.2 material white end # The ceiling (2 triangles) object tri ceiling1 v0 556 548.8 0 v1 556 548.8 559.2 v2 0 548.8 559.2 material white end object tri ceiling2 v0 556 548.8 0 v1 0 548.8 559.2 v2 0 548.8 0 material white end # The back wall (2 triangles) object tri backWall1 v0 556 0 559.2 v1 0 0 559.2 v2 0 548.8 559.2 material white end object tri backWall2 v0 556 0 559.2 v1 0 548.8 559.2 v2 556 548.8 559.2 material white end # The left wall (2 triangles) object tri leftWall1 v0 556 0 0 v1 556 0 559.2 v2 556 548.8 559.2 material red end object tri leftWall2 v0 556 0 0 v1 556 548.8 559.2 v2 556 548.8 0 material red end # The right wall (2 triangles) object tri rightWall1 v0 0 0 559.2 v1 0 0 0 v2 0 548.8 0 material green end object tri rightWall2 v0 0 0 559.2 v1 0 548.8 0 v2 0 548.8 559.2 material green end # The small block (10 triangles) object tri smallBlock1 v0 130 165 65 v1 82 165 225 v2 240 165 272 material white end object tri smallBlock2 v0 130 165 65 v1 240 165 272 v2 290 165 114 material white end object tri smallBlock3 v0 290 0 114 v1 290 165 114 v2 240 165 272 material white end object tri smallBlock4 v0 290 0 114 v1 240 165 272 v2 240 0 272 material white end object tri smallBlock5 v0 130 0 65 v1 130 165 65 v2 290 165 114 material white end object tri smallBlock6 v0 130 0 65 v1 290 165 114 v2 290 0 114 material white end object tri smallBlock7 v0 82 0 225 v1 82 165 225 v2 130 165 65 material white end object tri smallBlock8 v0 82 0 225 v1 130 165 65 v2 130 0 65 material white end object tri smallBlock9 v0 240 0 272 v1 240 165 272 v2 82 165 225 material white end object tri smallBlock10 v0 240 0 272 v1 82 165 225 v2 82 0 225 material white end # The large block (10 triangles) object tri largeBlock1 v0 423 330 247 v1 265 330 296 v2 314 330 456 material white end object tri largeBlock2 v0 423 330 247 v1 314 330 456 v2 472 330 406 material white end object tri largeBlock3 v0 423 0 247 v1 423 330 247 v2 472 330 406 material white end object tri largeBlock4 v0 423 0 247 v1 472 330 406 v2 472 0 406 material white end object tri largeBlock5 v0 472 0 406 v1 472 330 406 v2 314 330 456 material white end object tri largeBlock6 v0 472 0 406 v1 314 330 456 v2 314 0 456 material white end object tri largeBlock7 v0 314 0 456 v1 314 330 456 v2 265 330 296 material white end object tri largeBlock8 v0 314 0 456 v1 265 330 296 v2 265 0 296 material white end object tri largeBlock9 v0 265 0 296 v1 265 330 296 v2 423 330 247 material white end object tri largeBlock10 v0 265 0 296 v1 423 330 247 v2 423 0 247 material white end