room-geom.pbrt 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. # walls
  2. AttributeBegin
  3. Material "matte" "color Kd" [.5 .5 .5]
  4. #Shape "trianglemesh" "integer indices" [0 1 2 0 2 3 ]
  5. # "point P" [ 0 0 0 20 0 0 20 10 0 0 10 0 ]
  6. Shape "trianglemesh" "integer indices" [0 1 2 0 2 3 ]
  7. "point P" [ 0 0 20 20 0 20 20 10 20 0 10 20 ]
  8. Shape "trianglemesh" "integer indices" [0 1 2 0 2 3 ]
  9. "point P" [ 0 0 0 0 0 20 0 10 20 0 10 0 ]
  10. Shape "trianglemesh" "integer indices" [0 1 2 0 2 3 ]
  11. "point P" [ 20 0 0 20 0 20 20 10 20 20 10 0 ]
  12. AttributeEnd
  13. #ceiling
  14. Material "matte" "color Kd" [.1 .1 .1]
  15. Shape "trianglemesh" "integer indices" [0 1 2 0 2 3 ]
  16. "point P" [ -3 10 -3 23 10 -3 23 10 5 -3 10 5 ]
  17. Shape "trianglemesh" "integer indices" [0 1 2 0 2 3 ]
  18. "point P" [ -3 10 15 23 10 15 23 10 23 -3 10 23 ]
  19. Shape "trianglemesh" "integer indices" [0 1 2 0 2 3 ]
  20. "point P" [ -3 10 -3 5 10 -3 5 10 23 -3 10 23 ]
  21. Shape "trianglemesh" "integer indices" [0 1 2 0 2 3 ]
  22. "point P" [ 15 10 -3 23 10 -3 23 10 23 15 10 23 ]
  23. Shape "trianglemesh" "integer indices" [0 1 2 0 2 3 ]
  24. "point P" [ -3 10.1 -3 23 10.1 -3 23 10.1 5 -3 10.1 5 ]
  25. Shape "trianglemesh" "integer indices" [0 1 2 0 2 3 ]
  26. "point P" [ -3 10.1 15 23 10.1 15 23 10.1 23 -3 10.1 23 ]
  27. Shape "trianglemesh" "integer indices" [0 1 2 0 2 3 ]
  28. "point P" [ -3 10.1 -3 5 10.1 -3 5 10.1 23 -3 10.1 23 ]
  29. Shape "trianglemesh" "integer indices" [0 1 2 0 2 3 ]
  30. "point P" [ 15 10.1 -3 23 10.1 -3 23 10.1 23 15 10.1 23 ]
  31. # window bar things
  32. Material "matte" "color Kd" [0 0 0 ]
  33. Shape "trianglemesh" "integer indices" [0 1 2 0 2 3 ]
  34. "point P" [ 7.4 10 0 7.6 10 0 7.6 10 20 7.4 10 20 ]
  35. Shape "trianglemesh" "integer indices" [0 1 2 0 2 3 ]
  36. "point P" [ 9.9 10 0 10.1 10 0 10.1 10 20 9.9 10 20 ]
  37. Shape "trianglemesh" "integer indices" [0 1 2 0 2 3 ]
  38. "point P" [ 12.4 10 0 12.6 10 0 12.6 10 20 12.4 10 20 ]
  39. Shape "trianglemesh" "integer indices" [0 1 2 0 2 3 ]
  40. "point P" [ 0 10 7.4 0 10 7.6 20 10 7.6 20 10 7.4 ]
  41. Shape "trianglemesh" "integer indices" [0 1 2 0 2 3 ]
  42. "point P" [ 0 10 9.9 0 10 10.1 20 10 10.1 20 10 9.9 ]
  43. Shape "trianglemesh" "integer indices" [0 1 2 0 2 3 ]
  44. "point P" [ 0 10 12.4 0 10 12.6 20 10 12.6 20 10 12.4 ]
  45. #floor
  46. Texture "tmap" "color" "imagemap" "string filename" "textures/buildingblock.png"
  47. "float uscale" 6 "float vscale" 6
  48. Texture "tbump-tex" "float" "imagemap" "string filename" "textures/buildingblock.png"
  49. "float uscale" 6 "float vscale" 6
  50. Texture "sbump" "float" "scale" "texture tex1" "tbump-tex"
  51. "float tex2" [-.25]
  52. Material "substrate" "texture Kd" "tmap"
  53. "color Ks" [.5 .5 .5] "float uroughness" [.05]
  54. "float vroughness" [.05]
  55. "texture bumpmap" "sbump"
  56. #Material "plastic" "texture Kd" "tmap" "color Ks" [.3 .3 .3]
  57. # "float roughness" [.1] "texture bumpmap" "sbump"
  58. Shape "trianglemesh" "integer indices" [0 1 2 0 3 2 ]
  59. "point P" [ 0 0 0 20 0 0 20 0 20 0 0 20 ]
  60. AttributeBegin
  61. Material "translucent" "color Kd" [.5 .3 .3]
  62. Translate 15 0 10
  63. Scale 1.25 1.25 1.25
  64. Include "geometry/room-teapot.pbrt"
  65. AttributeEnd
  66. AttributeBegin
  67. Material "metal" "float roughness" [.001]
  68. "spectrum eta" "spds/Ag.eta.spd"
  69. "spectrum k" "spds/Ag.k.spd"
  70. Translate 9 0 15
  71. Rotate 30 0 1 0
  72. Scale 1.5 1.5 1.5
  73. Include "geometry/room-teapot.pbrt"
  74. AttributeEnd
  75. AttributeBegin
  76. Material "plastic" "color Kd" [.3 .1 .1 ] "color Ks" [.6 .6 .6]
  77. "float roughness" [.05]
  78. Translate 8 0 9
  79. Rotate 122 0 1 0
  80. Include "geometry/room-teapot.pbrt"
  81. AttributeEnd