This repository holds a raytracing library for simulating and testing camera lens stacks.
This library is currently in development.
This repository is entirely written in C++ and MATLAB, and is structured around the CMAKE cross-compilation paradigm. All source code is in the lens_raytracer_3d/src/
directory.
Open a MATLAB instance, then
cd lens_raytracer_3d/src/matlab/
example_create_scene_file
The example_create_scene_file
MATLAB script will automatically compile the C++ binary and open a subprocess call to run it.
Alternatively, the raytracer executable can be compiled using the standard CMAKE build scheme. Clone this repository, and then
cd lens_raytracer_3d
mkdir build
cd build
cmake ..
make
The current primary executable will simulate rays emitted from an area light source passing through the lens stack described in the lens_raytracer_3d/config/scene.yaml
file. To run, type:
./bin/raytracer