Skip to content
Snippets Groups Projects
Select Git revision
  • main
  • simd
  • looping
  • threadless
4 results

pew

  • Open with
  • Download source code
  • Pew!

    A multi-threaded raytracer following https://raytracing.github.io/

    Dependencies

    sdl2
    sdl2_ttf

    Build

    mkdir build && cd build
    cmake -DCMAKE_BUILD_TYPE=Release ..
    cmake --build . --config Release

    Run

    # make sure that the asset folder is on the same path
    ./build/src/pew/pew

    Controls

    <SPACE>     Pause rendering
    u           Show final render
    i           Show materials as colors
    s           Save render in current state at ./shot.png

    WASM

    Wasm is currently wip on the threadless branch.
    Click here for a live demo: https://about.evysgarden.org/raytrace/main.html

    Screenshots

    A complete scene

    Rendered scene

    Viking room by nigelgoh (CC BY 4.0)

    Viking room

    Rendered out image

    another shot

    Materials as colors

    Materials as colors

    Screenshot of a scene being rendered

    Rendering a scene