Giter Club home page Giter Club logo

hw-radiosity's Introduction

hw-radiosity

CPU-based Radiosity (computer graphics)

Usage

  • Compiler: g++ 4.8.5 - support C++14
  • Hardware: multi-core processors
  • OS: Unix-like system
  • [optional] python 2.x for demo

Build

git clone https://github.com/morris821028/hw-radiosity
cd hw-radiosity && make

Options

Usage: ./rad [options] input_file -o output_file
OPTIONS
   Debug Options
       -debug <integer>        Output intermediate result according debug level.
                               Default -debug 0

   Radiosity Options
       -adapt_area <float>     The threahold of adaptive splitting algorithm.
                               Default -area 5.000000
       -sample_area <float>    When the difference of form factor for each vertex is
                               greater than delta form factor, it should try to split.
                               Default by model-dependent
       -converge <float>       The radiosity B is the energy per unit area unit B is too small.
                               Default -converge 1200.000000
       -delta_ff <float>       The difference of delta form factor which is smaller than delta_ff
                               will consider as the same.
                               Default -delta_ff 0.000005
       -write_cycle <integer>  Write the status of radiosity for each write_cycle iterations.
                               Default -write_cycle 10
       -triangle <integer>     The maximum the number of triangles in the model. If you show image
                               on WebGL, set -triangle 30000 is the best resolution
                               Defulat -triangle 1000000
       -light <float>          Adjust the scale of bright light for testing.
                               Defulat -light 1.000000
   Output Options
       -zip                    Compress output file by zip.
                               Defulat false
       -o </<path>/file>       Assign the prefix filename the output file
                               Defulat ./test
       -interactive            Transfer the result into WebGL each write_cycle
                               Defulat false

Demo (WebGL)

For server

cd hw-radiosity && ./server.sh

link http://127.0.0.1:8888/demo/public/

For localhost

cd hw-radiosity/demo/public

Windows

./chrome.exe -allow-file-access-from-files

Macbook

/Applications/Google Chrome.app/Contests/MacOS/Google Chrome -allow-file-access-from-files

hw-radiosity's People

Contributors

kucw avatar morris821028 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

kucw

hw-radiosity's Issues

License ?

Hello, under what license is this project released under ? Thank-you.

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.