CERES Ray Tracer
Project description
CERES Ray Tracer (CRT)
This project was developed as part of CERES and aims to provide scientifically useful path tracing capabilities for:
- Rendering photo-real images
- Simulating multi-bounce behavior accounting for wavelength and polarization
- Modeling solar radiation and albedo radiation pressure on spacecraft
Available Environments
Environment | Build | Notes |
---|---|---|
Ubuntu 20.04 | ||
Ubuntu 18.04 | Using export CXX="g++-9" CC="gcc-9" |
Quick Start:
Install from PyPI:
pip install ceres-raytracer
Building from Source:
Build from source::
git clone https://github.com/ceres-navigation/ceres-raytracer.git
pip install .
NOTE for 18.04 ONLY: Because std::filesystem
is not implemented in GNU libstdc++ prior to 9.1 and LLVM libc++ prior to 9.0, you must first upgrade your compiler. Simply run:
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt install gcc-9 g++-9
export CXX="g++-8" CC="gcc-8"
Demos:
The follow demos can be found ceres-raytracer-demos. Simply clone the repository (after isntalling ceres-raytracer
) and run any of the .py
example files:
Static Scene:
The file demos/bunny.py
provides an example of how to setup a static scene. Simply navigate to the demos/
directory of the cloned ceres-raytracer
repository, and run:
python bunny.py
Doing so will produce an image sequence of a light moving around the stanford bunny.
Tasks:
- Implement physically based radiance tracking for paths
- Improve the adaptive sampling noise calculation
- Triangular meshes
- Add vertex color support
- Add parent object support
- Add parsers for more mesh type (.PLY, .GLTF/.GLB)
- Add texture mapping and normal maps
- Python Refactor
- Reorganize code into classes
- Add python bindings with pybind11
- Animation/sequence support
- Add wrapper classes with keyword arguments and state handling
- Setup build system using setuptools (for pip install)
- Distribute on PyPI
- Add Static BVH cacheing
- Importance Sampling
- Implement Malley's method for cosine importance
- Investigate alternative importance sampling method for planetary bodies (where primary indirect contribution is near horizon)
- Lighting
- Add output intensity to light objects
- Add circular area lights
- Add emissive mesh geometries
- Add polarized light
- Add specific wavelength support
- Cameras
- Add linear pushbroom camera model
- Add calibrated camera model
- Materials
- Add McEwen BRDF
- Add PBR textures
- Simulation
- Add radiation pressure modeling
Attributions
madmann91's Modern C++ BVH Construction and Traversal Library
This project utilizes a BVH construction and traversal library built by madmann91. While we have made some modifications to their implementation, their work forms most of the basis of the bounding volume hierarchy used in this project. Their originally source code can be found in the bvh repository
National Science Foundation Graduate Research Fellowship
This material is based upon work supported by the National Science Foundation Graduate Research Fellowship under Grant No. 2020305048. NSF GRFP gave Chris Gnam the flexibility and resources required to complete his research in spacecraft navigation, and this project is meant to serve as an open source implementation of his dissertation.
Contact
All questions, comments, and concerns should be directed to Chris Gnam: crgnam@buffalo.edu
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.