GithubHelp home page GithubHelp logo

hart's Introduction

HART

HART is a multi-threaded software ray tracer written entirely from scratch in C++. The main goal of the project was to educate myself on the basics of ray tracing and to improve my math skills. It's also the perfect exercise to write some multi-threading code which turned out be amazing.

The multi-threading engine is a lock-free (blocking-free) job based system where:

  • The number of threads does not exceed the number of physical threads that are on the CPU.
  • Each thread consists of their own queue to take jobs from.
  • The threadpool inserts jobs into the threads in a round-robin fashion.

Screenshots

Working positional camera

Render Resolution: 640 * 480
Samples per pixel: 512
Ray Bounces: 50
Render time: Instantaneous

Working depth of field

Render Resolution: 640 * 480
Samples per pixel: 4096
Ray Bounces: 10000
Render time: 1.5 hours

Working planes

Render Resolution: 1920 * 1080
Samples per pixel: 4096
Ray Bounces: 10000
Render time: ~2 hours

Working emissive materials

Render Resolution: 1920 * 1080
Samples per pixel: 16384
Ray Bounces: 64
Render time: 8 hours

Gradient wall

Render Resolution: 1920 * 1080
Samples per pixel: 16384
Ray Bounces: 64
Render time: 8 hours

Renferences

hart's People

Contributors

yeongasm avatar

Watchers

James Cloos 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.