


下載本文檔
版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、install pbrt for windows 7 & visual studio 2010 1. get pbrt download from the official website: /downloads.phpchoose prbt-v2-src.zip, for windows(14mb).unzip the pbrt archive into a local directory. ill refer to the fully qualified path to the root pbrt directory (your_local_di
2、r/pbrt-v2) as pbrtsrc_root. here i choose the directory: c:pbrt-v2 2. build pbrt on windows using visual studio 2010 1) open the src/pbrt.vs2010/pbrt.sln visual studio solution file. 2) select either debug or release, and x86 (win32) or x64. 3) build the solution. 3. set the pbrt_searchpath for wind
3、ows pbrt compiles each of its modules as dynamically linked libraries and uses pbrt_searchpath to find these libraries when running. create a system environment variable called pbrt_searchpath and set its value to pbrtsrc_root/ bin. you may also find it convenient to add the directory to your system
4、 path. here i set to pbrt_searchpath to c:pbrt-v2bin. pbrt should now be ready to go. 4. if you need to modify the pbrt parsing code, follow these steps first: 1) install bison and flex programs if they are not already installed. choose either cygwin or gnuwin32; either one will work. important note
5、: do not install under program files or program files (x86). the installation path should not contain any spaces. use c:cygwin or c:gnuwin32, for example. option a: gnuwin32 http:/ install bison and flex via setup packages. option b: cygwin install cygwin with bison and flex packages. these may not
6、be selected by default, so be sure to select them. 2) add bison and flex executable paths to the system path, so that they can be run from any directory or location. a) right-click my computer or computer. b) click properties. c) click advanced system settings or system properties. d) click the adva
7、nced tab. e) click the environment variables. button. f) add the path(s) of the flex and bison programs to the path variable, under the system variables group box. use the semi-colon (;) character to separate path items. example path to add: c:gnuwin32bin; g) press the ok button. h) press the ok but
8、ton. i) either log off and log back on the computer, or restart it for the updated path to take effect. 5. set pbrt path for cygwin now you must modify your pathand pbrt_searchpathenvironment variables so pbrt knows where to look for plugins etc. to do this edit your .bashrc file (in your cygwin use
9、r directory, note that if you dont have a .bashrc file you can create one from scratch, or worst case, edit the systemwide .bashrc at /etc/bash.bashrc) and add the following lines: export pbrt_searchpath=/cygdrive/c/pbrt-v2/bin:$path export path=$pbrt_searchpath:$path6. let s try a small example the
10、re are several example scenes in the folder pbrtsrc_root/scenes (for example, c:pbrt-v2scenes in my computer). also, you can download more scenes from the pbrt homepage /scenes.php . open cygwin terminal, and change to the scenes directory and render the bunny by writing: $ pbrt bu
11、nny.pbrt remember that rendering is a time-consuming task. after the rendering have been done, you can now visualize the image by converting the *.exr format to *.tiff format by writing: $ exrtotiff bunny.exr bunny.tiff pbrt is a physically based renderer, thus it generates high dynamic range images
12、. in practice the pixels values stored on the output file have floating point values that can range from 0 to any maximum number. to visualize the image using exrtotiff to convert the high dynamic range format to the tiff format, you can adjust exposure by setting parameters. the quality of the rend
13、ered image depends on many parameters and on the particular choice of algorithms used. the noise you see on the image depends, among others, on the number of samples, i.e. rays, taken per pixel. edit the bunny.pbrt file such that it uses the “ path ” surface integrator and only shoots 4 primary rays
14、 per pixel. you can open the bunny.pbrt file by notepad and replace the lines: sampler lowdiscrepancy integer pixelsamples 32 in the original file, with the following lines: sampler bestcandidate integer pixelsamples 4 surfaceintegrator path render the image again and visualize it. the first thing you will notice is that the image is full of noise. variance, or noise, can be reduced by increasing the number of samples taken. unfortunately, rendering time increases linearly with the number of samples but variance reduces with the square of the number of paths. in practice, you ll have to take
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 寵物營(yíng)養(yǎng)師在寵物食品市場(chǎng)中的作用試題及答案
- 食品檢測(cè)儀器使用考試試題及答案
- 小學(xué)一年級(jí)語(yǔ)文考試最佳試題及答案
- 寵物營(yíng)養(yǎng)師行業(yè)人才培養(yǎng)目標(biāo)與考試的關(guān)聯(lián)性與試題及答案
- 殯葬招聘考試題目及答案
- 口腔護(hù)理目的及注意事項(xiàng)
- 2024年小學(xué)六年級(jí)語(yǔ)文目標(biāo)測(cè)驗(yàn)試題及答案
- 2024年汽車維修工考試時(shí)間安排探討試題及答案
- 2024年汽車維修工發(fā)動(dòng)機(jī)運(yùn)轉(zhuǎn)異常分析試題及答案
- 2024年車主與維修工的溝通技巧試題及答案
- 民工學(xué)校開(kāi)展活動(dòng)記錄
- 公司發(fā)票報(bào)銷說(shuō)明
- GB/T 17492-2019工業(yè)用金屬絲編織網(wǎng)技術(shù)要求和檢驗(yàn)
- 2023年1月浙江首考高考英語(yǔ)試卷真題及答案(含聽(tīng)力原文mp3+作文范文)
- 水利工程建設(shè)標(biāo)準(zhǔn)強(qiáng)制性條文
- 數(shù)學(xué)課堂教學(xué)技能講座課件
- 異物管控記錄表
- 公車私用管理制度
- 設(shè)備主人制管理辦法
- 市政基礎(chǔ)設(shè)施工程旁站監(jiān)理記錄表
- 幼兒園繪本:《小蛇散步》 課件
評(píng)論
0/150
提交評(píng)論