This is a raytracer and some other graphics-related code. Earlier revisions render by z-buffer method.
Download these renders in the Releases.
2D.mp4
2D.1.mp4
2D.2.mp4
make
will render the scene configured in src/raytracer_3d.c
as 2D.mp4
and 3D.mp4
under out/Raytracer_3D
.
The 3D video is intended to be viewed with red-cyan 3D glasses.
- Supported shapes include:
- Sphere
- Cylinder
- Cone
- Torus
- Texture maps
- Shadows
- Reflection
- Refraction
- Red-cyan 3D
- ImageMagick (
convert
produces XWD texture maps) - FFmpeg (merge individual frames into a video)