This is a ray tracing program in C using SDL2 and imgui. This project is done during 42 graphic branch to learn about computer-generated images. Built and tested on mac OSX 10 & Windows
Install the library required :
brew install sdl2
brew install sdl2_image
This command will built an app bundle :
git clone --recurse-submodules https://github.com/nihuynh/RT && cd RT && make
(Untested)
(Untested)
For more info on how to use the makefile :
make usage
exemple for the map pool.rt, once the screenshots are generated.
ffmpeg -r 30 -f image2 -i pool.rt%d.png -vcodec libx264 -crf 15 -pix_fmt yuv420p pool_30FPS.mp4
- sky-box
- Refraction (Glass)
- Reflection (Mirror)
- Controllable camera
- Screenshot
- Load/Reload/Export scenes
- Live Edit of the scenes
- Under and over-sampling
- UI
- Fullscreen
- Texture on all shapes
- Plane
- Cube
- Sphere
- Cylinder
- Cone
- CSG (Constructive Solid Geometry)
- Triangle
- Disk
- Limited plane
http://www.yamllint.com/ : A Must have for travis.
This repository is under no license.