Skip to content

TheWeaklessOne/RTv1

Repository files navigation

RTv1

My first Ray Tracer.

red_sphere_in_room Several options are available (see Keyboard shortcuts section for more infos) :

  • Camera move
  • Camera rotate
  • Reread *.conf file without restart

Install & launch

git clone https://github.com/TheWeaklessOne/RTv1 ~/RTv1
cd ~/RTv1 && ./install_frameworks && make && ./RTv1 Scenes/scene_0.conf

You have to launch the program with a parameter. This is the path to *.conf file that contains scene. Run ./RTv1 -help for more info.

Example :

Open the second scene ⇣

./RTv1 Scenes/scene_1.conf

Keyboard shortcuts

Description  Key(s) 
Close the program (aka quit/exit)  ESC 
Move forward  W 
Move backward  S 
Move left  A 
Move right  D 
Move up  Q 
Move down  E 
Rotate the camera on the +Y axis  ▲ 
Rotate the camera on the -Y axis  ▼ 
Rotate the camera on the -X axis  ◄ 
Rotate the camera on the +X axis  ► 
Reread *.conf file"  R 

Screenshots

just_red_sphere bunch_of_spheres cones_and_spheres jail

About

Ray trace project at School21

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published