bollu / optics

optics and refraction simulation in C++

Repository from Github https://github.combollu/opticsRepository from Github https://github.combollu/optics

Optics

The one where bollu is annoyed at photography tutorials, and so writes a raymarcher for signed distance functions to simulate ray optics.

Defocusing when object is not on focal plane

ray-optics-screen-small.mp4

Aperture size versus sharpness for depth of field

dof-aperture-small.mp4

Thin Lens versus Thick lens and parallelism of points at infinity

output.mp4

About

optics and refraction simulation in C++


Languages

Language:C 85.3%Language:C++ 14.2%Language:CMake 0.5%Language:Makefile 0.0%