[go: up one dir, main page]

Skip to content

odkaz/miniRT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

miniRT

pikachu

Discription

This program will render simple geometric shapes using the ray tracing techniques, as well as handling the lighting and the different angles of the camera. The program is written in C only using some basic external functions such as math.h and MiniLibX, due to the restrictions of the project.

Usage guide

1.git clone https://github.com/odkaz/miniRT.git;cd miniRT;make;make clean;: This command will clone the repository and compile the project.

2../miniRT PATH: The program takes the path to the .rt files as the first argument. You also can add --save option as the second argument to render the images into .bmp files.

Try for example,

./miniRT rt_files/spheres.rt: It will open an window like this ↓

sphere

Now enjoy the beautiful images rendered by ray tracing!

Controls

3.tab: Swich the camera to see from different angles.

4.esc: Exit the program, or you can click on the cross button to finish the program.

About

A project using ray tracing graphics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published