Giter VIP home page Giter VIP logo

lambertianrendering_v1's Introduction

Lambertian Rendering v1

MATLAB implementation of a lambertian renderer without bounce from geometry, albedo, light and camera poses.

Setup

Extract the ZIP file (or clone the git repository) somewhere you can easily reach it.

Usage

Setup parameters

Check out the function setParameters.m to change the camera and scene parameters.

Rendering parameters

  1. Basic rendering parameters are available such as image size and color type (gray or RGB).
  2. Camera intrinsics are stored in a 3x3 calibration matrix that includes principal point coordinates and focal length.
  3. Poses are stored in 3x4 matrices that represent world-to-camera transformation matrices [ R t ].
  4. Directional lighting is stored in a vector-3.
  5. Perspective or orthographic projection models are available.

Scene parameters

  1. The scene geometry is a surface defined by a bivariate function z(x,y).
  2. Its normals are the cross product between the x and y gradient of the z function.
  3. The albedo is a piecewise linear function of (x,y) whose coefficients are defined by an image. Any grayscale or colored image can be used to define it (see setParameters.m).

Running code

Once your parameters are set, run main.m script to get the rendered images of your scene. Corresponding depth, normal and albedo maps are computed and stored in folders defined in main.m.

lambertianrendering_v1's People

Contributors

bbrument avatar

Watchers

 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.