Skip to content

ohwwh/miniRT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published