Coder Social home page Coder Social logo

arthurfirmino / ice-crystal-halos Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 2.0 1.59 MB

Plugin for the physically based renderer Mitsuba

License: GNU General Public License v3.0

MATLAB 60.77% C++ 39.23%
physically-based-rendering mitsuba plugin research-project cpp matlab

ice-crystal-halos's Introduction

ice-crystal-halos

Repository for the code from my MSc project titled Physically Based Rendering of Ice Crystal Halos.

Consists of a phase function plugin for the Mitsuba renderer written in C++, and a MATLAB script for pre-computing the tabulated phase function.

Sample Renders

Alt Text Alt Text

Usuage

Generating the Phase Function file

  1. Compile (with optimizations) ics_function and write_out using MATLAB Coder
  2. Run script.m producing .data file

Compiling the plugin

  1. Read Mitsuba documentation for details on how to compile Mitsuba
  2. Copy icecrystal.cpp to the mitsuba/src/phase directory
  3. Add plugins += env.SharedLibrary('icecrystal', ['icecrystal.cpp']) to the SConscript file
  4. Compile Mitsuba

Rendering

  1. Follow Mitsuba documentation for creating a scene with a heterogeneous participating media
  2. Set the medium's phase function to icecrystal
  3. Set the string parameter filename under icecrystal to the path of the generated file
  4. Render away!

ice-crystal-halos's People

Contributors

arthurfirmino avatar

Stargazers

 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.