Skip to content

Latest commit

 

History

History
67 lines (57 loc) · 1.62 KB

README.md

File metadata and controls

67 lines (57 loc) · 1.62 KB

miniRT

My first RayTracer with miniLibX

📕 Summary

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.


🚀 Flow chart!


⬇️ Installation

  • Clone
    git clone https://github.com/ohwwh/miniRT.git
    cd miniRT
    make
    ./miniRT map/example.rt
    

🔔 Result

Phong Lighting Path Tracing

🕹 Keys

  • 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