Giter Site home page Giter Site logo

driule / webgl-path-tracer Goto Github PK

View Code? Open in Web Editor NEW
26.0 3.0 3.0 387.43 MB

Game and Media Technology MSc at Utrecht University (2020)

Home Page: https://driule.github.io/webgl-path-tracer/

JavaScript 0.67% TypeScript 77.68% GLSL 21.65%
path-tracer webgl2 glsl javascript gltf typescript rendering-engine web bvh bvh-traversal

webgl-path-tracer's Introduction

WebGL Path Tracer

Demo: webgl-path-tracer

Report: Master_Thesis_Report.pdf

Rendered Scenes

Sponza Pica Room Avocados

Progress

  • [+] Next Event Estimation and Multiple Importance Sampling ported from LightHouse2
  • [+] Ordered BVH traversal algorithm implemented
  • [+] Multiple GL textures exploited for skydome and albedo textures loading
  • [+] GLTF file loading improved: multiple meshes with different textures support; few crucial bug fixes: do not calculate GL texture size at run-time
  • [+] Skydome sampling
  • [+] Base color and albedo textures support
  • [+] Geometry loading from GLTF files
  • [+] Improved user interface: website buttons to control actions such as changing scene, stop/resume rendering
  • [+] Scene camera controls via website buttons or keyboard
  • [+] GLSL shaders separated into external files
  • [+] Russian Roulette method to evaluate ray survival probability
  • [+] BVH acceleration structure implemented. Built on JavaScript side and then passed to the fragment shader via GL texture. Traversed using stack on the shader side.
  • [+] Randomize light based on seed {time, pixel coordinates, loop iteration}
  • [+] Pass scene triangles and lights to the shader via texture

Setup

  • Install dependencies listed in package.json, and then bundle JavasScript source files
npm install

npm run develop
npm run build
  • Translate TypeScript to JavaScript: run Build Task in Visual Studio Code (CTRL + SHIFT + B)
  • Deploy /dist content on a web server excluding /dist/.tmp folder.

webgl-path-tracer's People

Contributors

dependabot[bot] avatar driule avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

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.