Code Monkey home page Code Monkey logo

pbrt-v2-cmake's Introduction

Fork of PBRT v2 for COMP 408 at VUW. Not really a fork because of build system changes and removing all but the renderer source.

Original here.

PBRT for COMP 408

This is just the PBRT renderer (no tools / exporters), with a CMake build system.

Bison and Flex are required in order to generate the parser and lexer.

The master branch has the CMake and pbrt-v2 source (modified just enough to build nicely).

Building on Linux

From repository root:

mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j4
cd ..

Then run like:

./build/bin/pbrt ./scenes/bunny.pbrt

Building on Windows (VS2013, x64)

Somewhat old but sufficient versions of Bison and Flex can be obtained from here and here. These must be installed to a path without spaces, e.g. C:\GnuWin32\; note that the default does not satisfy this. The binary directory must be added to your path to allow CMake to find the executables.

From repository root, in cmd:

mkdir build
cd build
cmake .. -G "Visual Studio 12 Win64"

In VS:

  • Set pbrt as the startup project
  • Set its working directory to $(SolutionDir).. (all configs)
  • Set its command arguments to e.g. ./scenes/bunny.pbrt (all configs)
  • Switch to release config, as non-optimized builds will be very slow to render

pbrt-v2-cmake's People

Contributors

bpallen avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

serpheroth

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.