Install pbrt v2 in Windows

Source: Internet
Author: User
Tags visual studio 2010

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 /).

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.