Giter Site home page Giter Site logo

skylights's Introduction

Skylights

Skylights is a command line tool to bake radiance and irradiance maps for image based lighting.

It converts an input environment map in equirectangular format into 3 cubemaps:

  • Radiance
  • Irradiance
  • Environment map to use optionally as a skybox
Usage: skylights [OPTIONS] [input-image]

Arguments:
  [input-image]  Environment map to process

Options:
  -x <cubemap-side>      Side of the output cubemaps in pixels [default: 1024]
  -f <pixel-format>      Output cubemaps pixel format [default: rgba16f] [possible values: rgba32f, rgba16f]
  -e <encoding>          Output cubemaps image encoding [default: ktx2] [possible values: ktx1, ktx2, dds, png]
  -n <num-samples>       Number of samples per pixel when calculating radiance and irradiance maps [default: 128]
  -m <strength>          Scales the final baked value in the radiance and irradiance maps [default: 1]
  -c <contrast>          Corrects the contrast of the final color [default: 1]
  -b <brightness>        Corrects the brightness of the final color [default: 1]
  -s <saturation>        Corrects the saturation of the final color 0: grayscale and 1: original color [default: 1]
  -u <hue>               Corrects the hue of the final color in degrees. [possible values: 0..360] [default: 0]
  -l, --lut              Computes GGX LUT
  -h, --help             Print help

To use from Releases (Windows only)

To install:

  • Install rust following the official Rust install guide: https://www.rust-lang.org/tools/install
  • Restart the terminal so the search paths are updated.
  • Install the latest cmake adding it to the path and a c++ compiler, in windows Visual Studio 2017 or later, or Build Tools for Visual Studio with the Visual C++ option. In linux gcc or clang.
  • Use cargo to install the tool:
cargo install skylights
  • Now skylights should be in the path and can be called from anywhere. skylights --help shows a help screen.

To build from source:

  • Install rust following the official Rust install guide: https://www.rust-lang.org/tools/install
  • Restart the terminal so the search paths are updated.
  • Install the latest cmake adding it to the path and a c++ compiler, in windows Visual Studio 2017 or later, or Build Tools for Visual Studio with the Visual C++ option. In linux gcc or clang.
  • Download the source from git:
git clone https://github.com/arturoc/skylights
  • Build and run using cargo (add the corresponding parameters after the --):
cd skylights
cargo run --profile=debug-optimized -- --help

Skylights is sponsored by novorender

skylights's People

Contributors

arturoc avatar

Stargazers

arpu avatar kayh avatar Tore Lode avatar Honigstein Samuel avatar

Watchers

 avatar  avatar

Forkers

samsy

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.