My first RayTracer with miniLibX
This project is an introduction to the beautiful world of Raytracing. Once completed you will be able to render simple Computer-Generated-Images and you will never be afraid of implementing mathematical formulas again.
- Clone
git clone https://github.com/ohwwh/miniRT.git cd miniRT make ./miniRT map/example.rt
Phong Lighting | Path Tracing |
-
Mode change
- P : Phong Lighting mode
- R : Path Tracing mode
- number key 1 : sphere
- number key 2 : cylinder
-
Transpose
- W : forward
- A : left
- D : right
- S : back
-
Rotation
- ⬆️ : camera up for default, rotate the cylinder vertically for cylinder mode
- ⬇️ : camera down for default, rotate the cylinder vertically for cylinder mode
- ⬅️ : camera left for default, rotate the cylinder horizontally for cylinder mode
- ➡️ : camera right for default, rotate the cylinder horizontally for cylinder mode