Coder Social home page Coder Social logo

andrechen / path-tracer-using-opengl Goto Github PK

View Code? Open in Web Editor NEW

This project forked from eduard0110/path-tracer-using-opengl

0.0 0.0 0.0 87.15 MB

A path tracer made using OpenGL shaders with decent UI

License: MIT License

C++ 71.23% C 27.89% Objective-C 0.52% GLSL 0.37%

path-tracer-using-opengl's Introduction

Path-tracer-using-OpenGL

A path tracer made using OpenGL with decent UI. This path tracing works with non-polygon graphics, which means that all distance calculations are based on the position and direction of the ray.

BA0GHUpS CAJZ0V4q rsu6tCdx

Features

  • 3 different types of object - Cube, Sphere and Plane
  • 3 types of materials - Rougth - Metalic, Lens, Light source (emissive material)
  • Depth Of Field effect
  • Accumulation of previous frames to denoise the image
  • You can load any images you want for the skybox (.png or .hdr)

Controls

  • W, A, S, D, left Shift and Space - Move the camera
  • Mouse - Rotate the camera
  • E - Disable or Enable the camera movement
  • R - Disable or Enable the Render mode
  • F - Hide or Display the User Interface
  • T - Make a screenshot of the scene

Useful links that helped me with this project

Things to work on

  • In real life, materials like lenses (glass) tend to absorb a portion of light when the ray goes through them. The amount of light absorbed by the lens is proportional to the distance traveled, and that is called the Beer's law. In my path tracer, I haven't implemented this yes, but when I get a chance I will

path-tracer-using-opengl's People

Contributors

eduard0110 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.