Git Product home page Git Product logo

tracer's Introduction

Tracer

Tracer is a renderer using C++, Embree and USD to produce photorealistic images using Path Tracing techniques on the CPU.

Screenshots

  • USD Kitchen, using the UDPT, Diffuse, Position, Normal and Debug integrators:

Features

  • Rendering:

    • Progressive rendering
    • Render/export to PPM
    • Render/export to EXR
  • Camera:

    • Types:
      • FPS
      • TODO : DCC-style
    • Subpixel jitter antialiasing
    • Depth of Field (using aperture radius and focal distance)
  • Integrator:

    • UDPT (Unidirectional Path Tracing):
      • TODO : Environment Sampling
        • TODO : Color-based sky/background
        • TODO : Image-Based Lighting (IBL)
      • TODO : Light Sampling/Next Event Estimation (NEE)
      • BSDF Sampling
    • Diffuse (WIP)
    • TODO : Occlusion
    • Position
    • Normal
    • Debug
      • Render the equivalent of Pixar USD's primID on the geometry
  • Sampling:

    • RNG:
      • Uniform
      • Stratified (WIP)
    • Methods:
      • Hemisphere:
        • Uniform
        • Cosine Weighted
      • Sphere:
        • Uniform
  • Material:

    • TODO : Default
    • TODO : Diffuse
    • TODO : Empirical (for experiment purposes)
    • TODO : Disney (2012)
  • BSDF/Lobes:

    • Diffuse:
      • Lambert
      • TODO : Oren-Nayar
      • TODO : Burley
      • TODO : Sheen
      • TODO : Subsurface Scattering
    • Specular:
      • TODO : GGX
      • TODO : Beckmann
      • TODO : Clearcoat
      • TODO : Thin Film
  • Light sources:

    • Sky/background light
    • TODO : Geometry light
  • Geometry types:

    • Meshes
      • Triangle-based
      • Quad-based
      • TODO : Subdivided
    • TODO : Curves
    • TODO : Primitives (sphere, cube...)
    • Instances:
      • Per-geometry instancing ("Everything is an instance" philosophy)
      • TODO : Native, multiple instancing of geometry prototypes
  • Acceleration structure:

    • Intel Embree native BVH
    • TODO : Custom-based
  • Scene:

    • Format:
      • Pixar USD
        • As .usd/usda/usdc/usdz
    • Ingested types:
      • TODO : Materials
      • TODO : Cameras
      • Geometry:
        • Meshes
        • TODO : Curves
        • TODO : Primitives
        • TODO : Instances
      • TODO : Light sources
  • Utility:

    • GUI using ImGui
    • Pause/resume render
    • Front/backbuffer swapping
    • FPS counter

How to use

Tracer was written using Linux, VSCode as the IDE, CMake as the building tool, and a GCC C++17 compiler in mind.

Download the source, build the project structure using CMake 3.x, open the project using your favorite IDE (tested on VSCode), build the project, and everything should be ready to use.

Dependencies

The following set of dependencies, when applicable, is more or less based on the VFX Reference Platform 2023. It should be noted that the versions exposed here are the ones I personally used to develop and build the project in its current state. Depending on the projects, different versions, older as newer, would certainly work.

  • Included:
    • Arguments Parsing: CLI11 (2.3.2)
    • Logging: spdlog (1.12.0)
    • Math Operations: Intel Common Library (3.5.2)
      • TODO : Needs to update the codebase to make use of the appropriate 3.13.5 version.
    • EXR Handling: tinyexr (0.9.5)
    • OpenGL Functions Loader: GLAD (0.1.36)
    • GUI System: ImGui (1.89.9)
  • Not Included:
    • Multithreading: Intel TBB (2020.3)
    • Ray Tracing Kernels: Intel Embree (3.13.5)
    • Boost (1.80.0)
    • Scene Description: Pixar USD (23.08)
      • Core library only, Hydra/Imaging/Python support unnecessary.

Credits

  • TODO

tracer's People

Contributors

joshuasenouf 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  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  avatar  avatar  avatar  avatar  avatar

tracer's Issues

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.