A raytracer built from scratch in Python.
It renders simple 3D scenes with diffuse and specular materials.
The project implements a minimal raytracing engine that supports:
- Ray–sphere intersection
- Diffuse and specular reflections
- Adjustable camera (resolution and field of view)
Learned and inspired by this course.
| Specular Example | Animation Example |
|---|---|
![]() |
![]() |
- Define your scene in
main.py. - Change resolution or field of view in this line.
- To perform multiple renders, create a
/renders/directory and add anImageID.txtfile inside. - Run the main file:
python main.py
