Skip to content
/ RT-42 Public

A RayTracer made for educational purpose at 42

Notifications You must be signed in to change notification settings

Flyeram/RT-42

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RT

RT is a 42's project where you have to code a Raytracer with many possibilities. It was made by four people with SDL and can do the following :

  • Render sphere, cone, cylinder, plane and circle
  • Use multiple light spot
  • Manage object's shadow
  • Reflection
  • Transparence and refraction
  • Texture on sphere
  • Antialiasing
  • Some filter
  • Screenshot

How to install

To compile on mac and linux make re. You need SDL2 and SDL2_ttf to compile

How to use

Run ./RT "scene filename". There is exemple of scene file in the scenes directory.
wa sd gt to move around.
left/right top/bot pageup/pagedown to rotate around.
To process auto render mode, please see folder world. If you just want to test it out, ./auto_render.sh world/world.auto

About

A RayTracer made for educational purpose at 42

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages