Skip to content

gray-heron/light-welter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LightWelter; yet another raytracer

Installation

Dependencies

  • System packages (as named in Debian): libassimp-dev libopenexr-dev libglew-dev libsdl2-dev libsdl2-ttf-dev libsdl2-image-dev libboost-all-dev cmake
  • OpenGL ES 3.10 capable driver
  • C++14 capable compiler
  • internet connection (cmake will download some other dependencies)

Installation

git clone https://github.com/acriaer/light-welter.git
cd light-welter
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j4
cd ..

Usage

./build/demo_app <rtc_file> [--<config_option_name>=<config_option_value>]*

You should see two windows: one for the opengl preview and one for the raytracer's output image. Press ENTER key to start raytracing. You can alse use some other keys:

  • X -- unlock free camera movement
  • WSADQE -- move the camera around
  • arrow keys -- change camera orientation
  • +/- -- increase/decrease the field of view
  • ESCAPE -- quit

For now please only use "standard" resolutions, i.e. 640x480 instead of 600x400.

Important options

  • --interactive=0 ; disable gui
  • --threads=8 ; threadpool size
  • --samples_per_pixel=120
  • --resx=1280
  • --resy=720

Examples

alt text

alt text

alt text

alt text

Other software used

http://ogldev.atspace.co.uk/index.html

https://github.com/opengl-tutorials/ogl

SDL2pp

spdlog

pugixml

GLM

CMakeRC