A small ray tracing engine written in C. Part of the 42 school curriculum.
MiniRT renders 3D scenes using ray tracing. You define scenes in .rt files with objects, lights, and camera settings, and the engine displays the result in real-time.
- Spheres (
sp) - Planes (
pl) - Cylinders (
cy) with caps - Ellipsoids (
el)
- Ray tracing with hard shadows
- Multiple point lights (multilight)
- Ambient lighting
- Specular reflection
- Adjustable camera FOV (0-180°)
- Real-time camera movement and rotation
make./miniRT <scene.rt>ESC- ExitW/S- Move forward/backwardA/D- Strafe left/rightR/F- Move up/down
C <x,y,z> <dx,dy,dz> <fov>
A <intensity> <r,g,b> # Ambient
L <x,y,z> <intensity> <r,g,b> # Point light (multiple supported)
sp <x,y,z> <radius> <r,g,b>
pl <x,y,z> <nx,ny,nz> <r,g,b>
cy <x,y,z> <nx,ny,nz> <radius> <height> <r,g,b>
el <x,y,z> <sx,sy,sz> <r,g,b>
- MLX42 (graphics library)
- GCC
- Make



