bathroom.pbrt 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476
  1. # make wood more glossy
  2. LookAt 0 23 30 10.2 5 0 0 1 0
  3. Camera "perspective" "float fov" 50
  4. "float focaldistance" 31 "float lensradius" .15 # .2 # .4
  5. Film "image" "integer xresolution" 1200 "integer yresolution" 760
  6. #Film "image" "integer xresolution" 600 "integer yresolution" 380
  7. "string filename" "bathroom.exr"
  8. # imgtool convert -bloomscale .1 -bloomlevel 5 bathroom.exr bathroom.png
  9. Sampler "sobol" "integer pixelsamples" 2048
  10. Integrator "bdpt"
  11. WorldBegin
  12. Scale -1 1 1
  13. # light above / behind camera
  14. AttributeBegin
  15. AreaLightSource "area" "blackbody L" [2700 15]
  16. Shape "plymesh" "string filename" "geometry/mesh_00001.ply"
  17. AttributeEnd
  18. # light above the sinks
  19. AttributeBegin
  20. AreaLightSource "area" "blackbody L" [2700 10]
  21. Shape "plymesh" "string filename" "geometry/mesh_00008.ply"
  22. AttributeEnd
  23. AttributeBegin
  24. AreaLightSource "area" "blackbody L" [2700 10]
  25. Shape "plymesh" "string filename" "geometry/mesh_00009.ply"
  26. AttributeEnd
  27. AttributeBegin
  28. AreaLightSource "area" "blackbody L" [2700 10]
  29. Shape "plymesh" "string filename" "geometry/mesh_00010.ply"
  30. AttributeEnd
  31. # window emitter
  32. AttributeBegin
  33. AreaLightSource "area" "blackbody L" [6500 100 ] #"color L" [2500 2500 2500]
  34. Shape "plymesh" "string filename" "geometry/mesh_00062.ply"
  35. ReverseOrientation
  36. Shape "plymesh" "string filename" "geometry/mesh_00062.ply"
  37. AttributeEnd
  38. # white border around black thing on floor?
  39. MakeNamedMaterial "blanc"
  40. "float roughness" [ 0.0104080001 ]
  41. "float index" [ 1 ]
  42. "string type" [ "uber" ]
  43. "rgb Kd" [ .5 .5 .5 ]
  44. "rgb Ks" [ 0.5 0.5 0.5 ]
  45. "rgb Kt" [ 0 0 0 ]
  46. "rgb opacity" [ 1 1 1 ]
  47. # towels and mats on floor
  48. TransformBegin
  49. Scale 10 10 10
  50. Texture "cloth-bump-base" "float" "fbm"
  51. Texture "cloth-bump" "float" "scale" "texture tex1" "cloth-bump-base" "float tex2" .025
  52. TransformEnd
  53. MakeNamedMaterial "blanc_drap"
  54. "string type" [ "matte" ]
  55. "rgb Kd" [ 0.6 .6 .6 ]
  56. "texture bumpmap" "cloth-bump"
  57. Texture "wood" "color" "imagemap" "string filename" "textures/WoodFine0016_L.png"
  58. MakeNamedMaterial "bois_"
  59. "float uroughness" [ 0.003 ]
  60. "float vroughness" [ 0.003 ]
  61. "string type" [ "substrate" ]
  62. "texture Kd" "wood"
  63. "rgb Ks" [ 0.2 0.2 0.2 ]
  64. # objects on shelves
  65. MakeNamedMaterial "bois_ebene"
  66. "float sigma" [ 10 ]
  67. "string type" [ "matte" ]
  68. "rgb Kd" [ .1 .1 .1 ]
  69. # small bottle by the tub
  70. MakeNamedMaterial "etiquette"
  71. "float uroughness" [ 0.0104080001 ]
  72. "float vroughness" [ 0.0104080001 ]
  73. "string type" [ "glass" ]
  74. # black seam around top of tub
  75. MakeNamedMaterial "jointure_noire"
  76. "float roughness" [ 0.1 ]
  77. "string type" [ "plastic" ]
  78. "rgb Kd" [ .04 .04 .04 ]
  79. "rgb Ks" [ 0.5 0.5 0.5 ]
  80. # walls
  81. MakeNamedMaterial "latte"
  82. #"string type" "fourier" "string bsdffile" "bsdfs/ceramic.bsdf"
  83. "string type" "matte"
  84. "color Kd" [ .55 .5 .5 ]
  85. "float sigma" 20
  86. MakeNamedMaterial "lumiere_cadre"
  87. "float roughness" [ 0.0104080001 ]
  88. "float index" [ 1 ]
  89. "string type" [ "uber" ]
  90. "rgb Kd" [ 0.639999986 0.639999986 0.639999986 ]
  91. "rgb Ks" [ 0.5 0.5 0.5 ]
  92. "rgb Kt" [ 0 0 0 ]
  93. "rgb opacity" [ 1 1 1 ]
  94. # metal trashcan
  95. MakeNamedMaterial "metal_poubelle"
  96. "spectrum eta" "spds/Ag.eta.spd"
  97. "spectrum k" "spds/Ag.k.spd"
  98. "float roughness" [0.001]
  99. "string type" ["metal"]
  100. # metal faucets, bars, drain in sink, ...
  101. MakeNamedMaterial "metal_vis.001"
  102. "spectrum eta" "spds/Ag.eta.spd"
  103. "spectrum k" "spds/Ag.k.spd"
  104. "float roughness" [0.01]
  105. "string type" ["metal"]
  106. MakeNamedMaterial "mirror"
  107. "string type" [ "mirror" ]
  108. # walls, painted wood shelves by the window
  109. MakeNamedMaterial "mur_blanc"
  110. "string type" "fourier" "string bsdffile" "bsdfs/paint.bsdf"
  111. # wall on the right
  112. MakeNamedMaterial "mur_droit"
  113. "string type" "fourier" "string bsdffile" "bsdfs/paint.bsdf"
  114. # black scale? on floor
  115. MakeNamedMaterial "noir"
  116. "float roughness" [ 0.5 ]
  117. "float index" [ 1 ]
  118. "string type" [ "uber" ]
  119. "rgb Kd" [ .1 .1 .1 ]
  120. "rgb Ks" [ 0.5 0.5 0.5 ]
  121. # plastic bit at top of bottle by bathrub
  122. MakeNamedMaterial "plastique"
  123. "float roughness" [ 0.0104080001 ]
  124. "float index" [ 1 ]
  125. "string type" [ "uber" ]
  126. "rgb Kd" [ .2 .6 .2 ]
  127. "rgb Ks" [ 0.5 0.5 0.5 ]
  128. "rgb Kt" [ 0 0 0 ]
  129. "rgb opacity" [ 1 1 1 ]
  130. # trash can plastic part, also plastic on outlet
  131. MakeNamedMaterial "plastique_poubelle"
  132. "float sigma" [ 20 ]
  133. "string type" [ "matte" ]
  134. "rgb Kd" [ .02 .02 .02 ]
  135. # middle part of squiggly sculpture on shelf
  136. MakeNamedMaterial "poignée_marron"
  137. "float roughness" [ 0.0104080001 ]
  138. "float index" [ 1 ]
  139. "string type" [ "uber" ]
  140. "rgb Kd" [ .3 .5 .4 ]
  141. "rgb Ks" [ 0.5 0.5 0.5 ]
  142. "rgb Kt" [ 0 0 0 ]
  143. "rgb opacity" [ 1 1 1 ]
  144. # porcelain: sink bowls, interior of bathrub
  145. MakeNamedMaterial "porcelaine.002"
  146. "string type" "fourier" "string bsdffile" "bsdfs/ceramic.bsdf"
  147. # floor
  148. Texture "wood-floor" "color" "imagemap" "string filename" "textures/WoodFine0034_7_S.png"
  149. MakeNamedMaterial "sol"
  150. "float roughness" [ 0.0104080001 ]
  151. "float index" [ 1 ]
  152. "string type" [ "uber" ]
  153. # "rgb Kd" [ 0.639999986 0.639999986 0.639999986 ]
  154. "texture Kd" "wood-floor"
  155. "rgb Ks" [ 0.5 0.5 0.5 ]
  156. "rgb Kt" [ 0 0 0 ]
  157. "rgb opacity" [ 1 1 1 ]
  158. # bottle by bathtub
  159. MakeNamedMaterial "verre"
  160. "float roughness" [ 0.0104080001 ]
  161. "float index" [ 1 ]
  162. "string type" [ "uber" ]
  163. "rgb Kd" [ 0.639999986 0.639999986 0.639999986 ]
  164. "rgb Ks" [ 0.5 0.5 0.5 ]
  165. "rgb Kt" [ 0 0 0 ]
  166. "rgb opacity" [ 1 1 1 ]
  167. ###########################################################################
  168. AttributeBegin
  169. NamedMaterial "etiquette"
  170. Shape "plymesh" "string filename" "geometry/mesh_00002.ply"
  171. NamedMaterial "plastique"
  172. Shape "plymesh" "string filename" "geometry/mesh_00003.ply"
  173. NamedMaterial "verre"
  174. Shape "plymesh" "string filename" "geometry/mesh_00004.ply"
  175. AttributeEnd
  176. AttributeBegin
  177. NamedMaterial "metal_vis.001"
  178. Shape "plymesh" "string filename" "geometry/mesh_00005.ply"
  179. AttributeEnd
  180. AttributeBegin
  181. NamedMaterial "metal_vis.001"
  182. Shape "plymesh" "string filename" "geometry/mesh_00006.ply"
  183. AttributeEnd
  184. AttributeBegin
  185. NamedMaterial "metal_vis.001"
  186. Shape "plymesh" "string filename" "geometry/mesh_00007.ply"
  187. AttributeEnd
  188. AttributeBegin
  189. NamedMaterial "blanc_drap"
  190. Shape "plymesh" "string filename" "geometry/mesh_00011.ply"
  191. AttributeEnd
  192. AttributeBegin
  193. NamedMaterial "metal_vis.001"
  194. Shape "plymesh" "string filename" "geometry/mesh_00012.ply"
  195. AttributeEnd
  196. AttributeBegin
  197. NamedMaterial "bois_ebene"
  198. Shape "plymesh" "string filename" "geometry/mesh_00013.ply"
  199. AttributeEnd
  200. AttributeBegin
  201. NamedMaterial "bois_ebene"
  202. Shape "plymesh" "string filename" "geometry/mesh_00014.ply"
  203. AttributeEnd
  204. AttributeBegin
  205. NamedMaterial "bois_ebene"
  206. Shape "plymesh" "string filename" "geometry/mesh_00015.ply"
  207. AttributeEnd
  208. AttributeBegin
  209. NamedMaterial "bois_ebene"
  210. Shape "plymesh" "string filename" "geometry/mesh_00016.ply"
  211. AttributeEnd
  212. AttributeBegin
  213. NamedMaterial "bois_ebene"
  214. Shape "plymesh" "string filename" "geometry/mesh_00017.ply"
  215. NamedMaterial "poignée_marron"
  216. Shape "plymesh" "string filename" "geometry/mesh_00018.ply"
  217. AttributeEnd
  218. AttributeBegin
  219. NamedMaterial "lumiere_cadre"
  220. Shape "plymesh" "string filename" "geometry/mesh_00019.ply"
  221. NamedMaterial "mur_blanc"
  222. Shape "plymesh" "string filename" "geometry/mesh_00020.ply"
  223. AttributeEnd
  224. AttributeBegin
  225. NamedMaterial "bois_ebene"
  226. Shape "plymesh" "string filename" "geometry/mesh_00021.ply"
  227. AttributeEnd
  228. AttributeBegin
  229. NamedMaterial "mur_blanc"
  230. Shape "plymesh" "string filename" "geometry/mesh_00022.ply"
  231. AttributeEnd
  232. AttributeBegin
  233. NamedMaterial "mur_blanc"
  234. Shape "plymesh" "string filename" "geometry/mesh_00023.ply"
  235. AttributeEnd
  236. AttributeBegin
  237. NamedMaterial "metal_vis.001"
  238. Shape "plymesh" "string filename" "geometry/mesh_00024.ply"
  239. AttributeEnd
  240. AttributeBegin
  241. NamedMaterial "metal_vis.001"
  242. Shape "plymesh" "string filename" "geometry/mesh_00025.ply"
  243. AttributeEnd
  244. AttributeBegin
  245. NamedMaterial "mur_blanc"
  246. Shape "plymesh" "string filename" "geometry/mesh_00026.ply"
  247. AttributeEnd
  248. AttributeBegin
  249. NamedMaterial "mur_blanc"
  250. Shape "plymesh" "string filename" "geometry/mesh_00027.ply"
  251. AttributeEnd
  252. AttributeBegin
  253. NamedMaterial "blanc"
  254. Shape "plymesh" "string filename" "geometry/mesh_00028.ply"
  255. NamedMaterial "noir"
  256. Shape "plymesh" "string filename" "geometry/mesh_00029.ply"
  257. AttributeEnd
  258. AttributeBegin
  259. NamedMaterial "metal_vis.001"
  260. Shape "plymesh" "string filename" "geometry/mesh_00030.ply"
  261. AttributeEnd
  262. AttributeBegin
  263. NamedMaterial "metal_vis.001"
  264. Shape "plymesh" "string filename" "geometry/mesh_00031.ply"
  265. AttributeEnd
  266. AttributeBegin
  267. NamedMaterial "metal_vis.001"
  268. Shape "plymesh" "string filename" "geometry/mesh_00032.ply"
  269. AttributeEnd
  270. AttributeBegin
  271. NamedMaterial "metal_vis.001"
  272. Shape "plymesh" "string filename" "geometry/mesh_00033.ply"
  273. AttributeEnd
  274. AttributeBegin
  275. NamedMaterial "metal_vis.001"
  276. Shape "plymesh" "string filename" "geometry/mesh_00034.ply"
  277. AttributeEnd
  278. AttributeBegin
  279. NamedMaterial "metal_vis.001"
  280. Shape "plymesh" "string filename" "geometry/mesh_00035.ply"
  281. NamedMaterial "mirror"
  282. Shape "plymesh" "string filename" "geometry/mesh_00036.ply"
  283. AttributeEnd
  284. AttributeBegin
  285. NamedMaterial "blanc_drap"
  286. Shape "plymesh" "string filename" "geometry/mesh_00037.ply"
  287. AttributeEnd
  288. AttributeBegin
  289. NamedMaterial "metal_vis.001"
  290. Shape "plymesh" "string filename" "geometry/mesh_00038.ply"
  291. AttributeEnd
  292. AttributeBegin
  293. NamedMaterial "metal_vis.001"
  294. Shape "plymesh" "string filename" "geometry/mesh_00039.ply"
  295. NamedMaterial "plastique_poubelle"
  296. Shape "plymesh" "string filename" "geometry/mesh_00040.ply"
  297. AttributeEnd
  298. AttributeBegin
  299. NamedMaterial "metal_vis.001"
  300. Shape "plymesh" "string filename" "geometry/mesh_00041.ply"
  301. AttributeEnd
  302. AttributeBegin
  303. NamedMaterial "metal_vis.001"
  304. Shape "plymesh" "string filename" "geometry/mesh_00042.ply"
  305. AttributeEnd
  306. AttributeBegin
  307. NamedMaterial "blanc_drap"
  308. Shape "plymesh" "string filename" "geometry/mesh_00043.ply"
  309. AttributeEnd
  310. AttributeBegin
  311. NamedMaterial "blanc_drap"
  312. Shape "plymesh" "string filename" "geometry/mesh_00044.ply"
  313. AttributeEnd
  314. AttributeBegin
  315. NamedMaterial "metal_poubelle"
  316. Shape "plymesh" "string filename" "geometry/mesh_00045.ply"
  317. NamedMaterial "plastique_poubelle"
  318. Shape "plymesh" "string filename" "geometry/mesh_00046.ply"
  319. AttributeEnd
  320. AttributeBegin
  321. NamedMaterial "metal_vis.001"
  322. Shape "plymesh" "string filename" "geometry/mesh_00047.ply"
  323. AttributeEnd
  324. AttributeBegin
  325. NamedMaterial "metal_vis.001"
  326. Shape "plymesh" "string filename" "geometry/mesh_00048.ply"
  327. AttributeEnd
  328. AttributeBegin
  329. NamedMaterial "metal_vis.001"
  330. Shape "plymesh" "string filename" "geometry/mesh_00049.ply"
  331. AttributeEnd
  332. AttributeBegin
  333. NamedMaterial "metal_vis.001"
  334. Shape "plymesh" "string filename" "geometry/mesh_00050.ply"
  335. AttributeEnd
  336. AttributeBegin
  337. NamedMaterial "metal_vis.001"
  338. Shape "plymesh" "string filename" "geometry/mesh_00051.ply"
  339. AttributeEnd
  340. AttributeBegin
  341. NamedMaterial "metal_vis.001"
  342. Shape "plymesh" "string filename" "geometry/mesh_00052.ply"
  343. AttributeEnd
  344. AttributeBegin
  345. NamedMaterial "porcelaine.002"
  346. Shape "plymesh" "string filename" "geometry/mesh_00053.ply"
  347. AttributeEnd
  348. AttributeBegin
  349. NamedMaterial "porcelaine.002"
  350. Shape "plymesh" "string filename" "geometry/mesh_00054.ply"
  351. AttributeEnd
  352. AttributeBegin
  353. NamedMaterial "lumiere_cadre"
  354. Shape "plymesh" "string filename" "geometry/mesh_00055.ply"
  355. NamedMaterial "mur_blanc"
  356. Shape "plymesh" "string filename" "geometry/mesh_00056.ply"
  357. AttributeEnd
  358. AttributeBegin
  359. NamedMaterial "bois_"
  360. Shape "plymesh" "string filename" "geometry/mesh_00057.ply"
  361. AttributeEnd
  362. AttributeBegin
  363. NamedMaterial "bois_"
  364. Shape "plymesh" "string filename" "geometry/mesh_00058.ply"
  365. NamedMaterial "jointure_noire"
  366. Shape "plymesh" "string filename" "geometry/mesh_00059.ply"
  367. NamedMaterial "porcelaine.002"
  368. Shape "plymesh" "string filename" "geometry/mesh_00060.ply"
  369. AttributeEnd
  370. AttributeBegin
  371. NamedMaterial "bois_"
  372. Shape "plymesh" "string filename" "geometry/mesh_00061.ply"
  373. AttributeEnd
  374. AttributeBegin
  375. NamedMaterial "latte"
  376. Shape "plymesh" "string filename" "geometry/mesh_00063.ply"
  377. NamedMaterial "mirror"
  378. Shape "plymesh" "string filename" "geometry/mesh_00064.ply"
  379. NamedMaterial "mur_blanc"
  380. Shape "plymesh" "string filename" "geometry/mesh_00065.ply"
  381. NamedMaterial "mur_droit"
  382. Shape "plymesh" "string filename" "geometry/mesh_00066.ply"
  383. NamedMaterial "sol"
  384. Shape "plymesh" "string filename" "geometry/mesh_00067.ply"
  385. AttributeEnd
  386. AttributeBegin
  387. NamedMaterial "bois_"
  388. Shape "plymesh" "string filename" "geometry/mesh_00068.ply"
  389. AttributeEnd
  390. WorldEnd