Coder Social home page Coder Social logo

peterzs / dtrt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from uci-rendering/dtrt

0.0 0.0 0.0 70.19 MB

A differential theory of radiative transfer

Home Page: https://shuangz.com/projects/diffrender-sa19/

CMake 2.84% C++ 76.20% C 0.62% Python 20.10% Shell 0.25%

dtrt's Introduction

dtrt: An Unbiased Differentiable Volumetric Path Tracer

dtrt is a physics-based differentiable renderer computes derivative images with respect to arbitrary scene parameters (e.g., object geometries and material properties). This renderer is capable of producing unbiased derivative estimates with the presence of heterogeneous participating media. The estimated derivatives can be used for solving inverse rendering problems through gradient-based optimizations. For more details on our differential radiative transfer theory, please refer to the paper: A Differential Theory of Radiative Transfer, Cheng Zhang, Lifan Wu, Changxi Zheng, Ioannis Gkioulekas, Ravi Ramamoorthi, and Shuang Zhao.

Compilation

dtrt has been tested mainly under Ubuntu 18.04 LTS and can be compiled as follows.

  1. Install all the dependencies manually or using the provided script:
./install.sh
exec bash -l
  1. Compile the dtrt & pydtrt libraries:
mkdir build
cd build
cmake ..
sudo make install -j
  1. (Optional) To test if the compilation is successful, execute the example script:
cd examples/glass_1
python3 optimize.py

To run any other example script, the global variable nder defined in include/config.h needs to be changed to match the number of scene parameters with respect to which the derivatives are computed. Please refer to this page for the number of parameters in each example scene.

Dependencies

dtrt depends on a few libraries/systems that can be automatically installed using the accompanying install.sh script:

Documentation

dtrt involves two major components: (i) C++ differentiable rendering code under /src; and (ii) python interface code under /pydtrt that allows the rendered results to be used by Python-based tools like PyTorch.

If you have any questions/comments/bug reports, please open a github issue or e-mail Cheng Zhang at [email protected].

dtrt's People

Contributors

holmes969 avatar shuangz25 avatar

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.