Giter Club home page Giter Club logo

madarch's Introduction

Madarch

Ray marching engine in Ada and GLSL.

Features

  • Real-time global illumination, based on the DDGI paper.
  • Physically-based materials.
  • Soft shadows.
  • World-space reflections.
  • Glossy reflections (WIP).
  • World-space ambient occlusion.
  • Arbitrary meshes (voxelization, WIP).
  • Space partitioning (3D grid).
  • Volumetric lighting (light shafts).

Build library

The project uses Alire to manage its dependencies, but is not published there yet. So, simply clone this repository and run alr build to build the Madarch library.

Try the examples

In order to build and run the examples:

  • Build the Madarch library as described above.
  • Run eval $(alr printenv) to make it available in the current shell.
  • To build the global_illumination example, run gprbuild -P examples/global_illumination/gi.gpr.
  • Run it with ./examples/global_illumination/bin/main. Note that for now you must run it from Madarch's root directory

The other examples follow a similar structure.

Illustrations


Figure 1


Figure 2


Figure 3

  • Figure 1 showcases real-time global illumination: when the spot light targets the blue wall, only blue light bounces off it and propagates in the room, meaning everything appears blue. Similarly, in turns red as soon as the spot hits the red wall.

  • Figure 2 showcases world-space reflections (on the sphere), ambient occlusion, soft shadows and physically-based materials.

  • Figure 3 showcases volumetric lighting: the point light is on the right of the sphere, so air particles on the left of lie in it its shadow, which creates a shadow volume.

madarch's People

Contributors

roldak avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

madarch's Issues

build/readme is incomplete

The project looks super nice but it is a bummer to have to fetch / install dependencies by hand.
It would be nice to build using alr or have the repo synched on working submodules snapshots or a heads-up in the readme.

thx!

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.