1) download the pbrt package from the official website: http://www.pbrt.org/downloads.php, select pbrt-v2-src.zip,for
Windows. Extract the compressed package to a directory, it is recommended to extract to the root directory of the hard disk, such as c: \ pbrt-v2
2) use Microsoft Visual Studio 2010 to open src/pbrt. vs2010/pbrt. sln In the compressed package, select debug or release, and compile the x86 (win32) or x64 platform. Then build the solution.
3) set the system environment variable pbrt_searchpath. Create a system environment variable pbrt_searchpath and set its value to the pbrtsrc_root/bin directory. For example, set pbrt_searchpath to a c: \ pbrt-v2 \ bin directory.
The installation of pbrtv2 has been completed. You can use this software package.
If you need to modify the parsing code in pbrt, you also need to install the bison/flex program. You can select cygwin or gnuwin32. Note that do not install it in the "program"
Files or "program files (x86)" directory, because space is not allowed in the installation path. For example, you can select the directory c: \ cygwin or c: \ gnuwin32. Select any one.
A) Select to install gnuwin32http: // gnuwin32.sorceforge.net/
Install the bison and flex packages.
B) Select to install cygwinhttp: // www.cygwin.com/
Install cygwin, Bison, and flex software packages. Note that these two software packages may not be selected by default. You should select them when installing them.
The next step is to add the paths of the bison and flex executable programs to the system environment variables. That is, the directory c: \ gnuwin32 \ bin or c: \ cygwin \ bin
If cygwin is selected, You need to modify the path and pbrt_searchpath environment variables under cygwin so that you can find the corresponding application and DLLs when running pbrt under cygwin. Open the/ECT/bash. bashrc/systemwide. bashrc file in the cygwin user directory. If not, create the file and add the following two lines:
Export pbrt_searchpath =/cygdrive/C/pbrt-v2/bin: $ path
Export Path = $ pbrt_searchpath: $ path
Because pbrt generates images in the openexr format
Dynamic rangeimage), browse these images also need the corresponding picture browser. You can download and install the IMG explorer irfanview (http://www.irfanview.com/) for Windows that supports EXR format /).