PBRT安裝全攻略_第1頁
PBRT安裝全攻略_第2頁
PBRT安裝全攻略_第3頁
全文預(yù)覽已結(jié)束

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)

文檔簡介

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. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論