Giter VIP home page Giter VIP logo

precomputed-radiance-transfer's Introduction

precomputed-radiance-transfer

undergraduate student course project in Zhejiang University

The diffuse and glossy materials are supported. Sorry I don't have time to clean the code.

how to use it :

prt -l xxxx.jpg output.txt bandnumber samplenumber(4096)

prt -o -d 1 xxxx.obj output.txt bandnumber samplenumber

prt -o -g 1 xxxx.obj output.txt bandnumber samplenumber

-l: means lighting, -o: object type(material of glossy)

dependency: opengl,AnttweakBar,glm,Eigen,Cimg

Code from the website:

  1. The part to load a HDR image:HDRLoader.cpp, HDRLoader.h http://svn.openscenegraph.org/osg/OpenSceneGraph/branches/OpenSceneGraph-2.6/src/osgPlugins/hdr/hdrloader.cpp

  2. The code of rotation of Spherical Harmonics is copied from Paul Debevec’ s project. http://www.paulsprojects.net/opengl/sh/sh.html

  3. Create shader route: ShaderFunc.cpp,ShaderFunc.h Two functions: char* file_read(string filename) GLuint create_shader(string filename, GLenum type) http://en.wikibooks.org/wiki/GLSL_Programming/GLUT

result:

diffuse:

alt tag

glossy:

alt tag

performance:

alt tag

Any problem, please contact [email protected]

precomputed-radiance-transfer's People

Contributors

pramanc avatar

Watchers

James Cloos avatar  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.