Giter VIP home page Giter VIP logo

physically-based-rendering's Introduction

Physically-based Rendering

Rendering 3D scenes physically-based through Path Tracing. Interaction of light with surfaces is evaluated through bi-directional reflection distribution functions (BRDF). โ€” Master Thesis 2013/14

Acceleration structure: BVH

  • Stackless traversal.
  • 1 or 2 faces per leaf node.
  • Code for use of spatial splits in build process exists, but seems faulty. Should not be used.

Requirements

  • OS: Linux
    Though it should be possible to built and run it on other platforms as well. I just never tried it.
  • Hardware: GPU with OpenCL 1.1 and OpenGL 3.1 capabilities
    Tested only with NVIDIA.

Libraries/headers

  • freeglut3-dev
  • libboost-dev
  • libdevil-dev
  • libglew-dev
  • libglm-dev
  • libqt5core5a
  • libxi-dev
  • libxmu-dev
  • opencl-headers

NVIDIA and OpenCL

If there are problems to get NVIDIA hardware to work with OpenCL (which is very likely in my experience), here is some trouble shooting:

  • Check if you have this file: /etc/OpenCL/vendors/nvidia.icd
    The name doesn't really matter, but there has to be a file with the name or path of the NVIDIA OpenCL lib, e.g.: /usr/lib/x86_64-linux-gnu/libnvidia-opencl.so.346.82 or just libnvidia-opencl.so.1
    Check which library files you have with locate libnvidia-opencl.so.

  • I have the following installed and it works:

      libcg
      libcggl
      libcuda1-361-updates
      nvidia-cg-dev
      nvidia-cg-toolkit
      nvidia-361-updates
      nvidia-common
      nvidia-modprobe
      nvidia-prime
      nvidia-opencl-icd-361-updates
      nvidia-settings
      ocl-icd-libopencl1
      opencl-headers
    

Build and execute

cmake -DCMAKE_BUILD_TYPE=Release CMakeLists.txt
make
./PBR

Notes

  • NVIDIA only supports OpenCL 1.1. OpenCL 1.2 support seems unlikely at the moment.

physically-based-rendering's People

Contributors

sebadorn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

physically-based-rendering's Issues

License ?

Hello, under what license is this project released under ? Thank-you.

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.