GithubHelp home page GithubHelp logo

aeroraven / ray-tracing Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 0.0 1.87 MB

Path-tracing & Photon-mapping renderer based on GLSL & WebGL. Course Design of Computer Graphics, SSE Tongji University.

License: GNU Affero General Public License v3.0

HTML 0.10% JavaScript 90.26% GLSL 9.64%
computer-graphics glsl path-tracing ray-tracing webgl

ray-tracing's Introduction

Ray Tracing Renderer for WebGL

A clumsy attempt to re-implement ray tracing renderer based on WebGL.

NOTE: Before cloning or referring to this repository, read the WARNING section below.

1. License

Project Source Code: AGPL 3.0

Project Document: CC-BY-NC-SA 4.0

2.Dependencies & Environment

  • Foundation: WebGL
  • Javascript Package Management: Node.js
  • Mathematical Supports: glMatrix
  • Deployment: WebPack

3. To Launch The Project

Prerequisites

  • An appropriate GPU

  • WebGL2

  • Node.js

Commands

Just run npm run deploy

4. Features Supported

  • Algorithms:

  • Optimization:

    • Ping Pong Texture
    • Monte Carlo Integration
  • Materials:

    • Ideal Rough Surface (Diffuse Reflection)
    • Metal Surface
    • Ideal Specular Surface
    • Transparent Glass Surface (Lens)
    • Frosted Glass Surface

WARNING & DISCLAIMER

[2023-09-28] Aeroraven: This repository might stay UNMAINTAINED for it serves as the archive of the course project.

[2023-09-28] Aeroraven: Path tracing (not including photon mapping) implementation details in this repository might be WRONG. Problems include sampling mistakes and incorrect material processing. These problems have already been alleviated in the new repo. For detailed information, visit: https://github.com/Aeroraven/Aria/blob/main/Active-v2/src/examples/AriaStagePathTracing.ts

5. Acknowledgements

Projects we used for reference have already been listed here: https://aeroraven.github.io/2022/02/23/cg-course-1-raytracing/ (In Simplified Chinese)

The document which contains acknowledgement is licensed under CC-BY-NC-SA 4.0 License

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.