Skip to content

👀🎨 This project is the beginning of the study of "Ray Tracing" technology!

Notifications You must be signed in to change notification settings

zkerriga/mini-ray-tracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

miniRT

👀🎨 This project is the beginning of the study of Ray Tracing technology!

Objective of program:

The program gets a file that describes the scene, which can contain three-dimensional objects, light sources, and cameras. If the program is running in --save mode, it should create a bmp-image of the scene that would be visible from the last camera. Otherwise, a window should open that shows the image visible from the cameras, which can be switched with arrows (right and left). The position of objects relative to each other, their lighting and shadows should be processed as closely as possible to real light.

Prepare:

To download a project, use the command with an additional flag (used for connecting all libraries).

git clone https://github.com/zkerriga/mini-ray-tracer --recursive

Next, you need to compile the project with the make command. The Makefile will report the successful build of the project.

Usage:

The program starts as follows in the terminal:

./miniRT DESCRIPTION_PATH [FLAG]

Available flags:

  • -h, --help - Shows the help
  • -s, --save - Enables bmp-image saving mode.

Examples:

./miniRT ./scene_tests/castle.rt

castle.rt view-1 castle.rt view-2 castle.rt view-3 castle.rt view-4

Issue:

The minilibx library that is used in the project doesn't run on all systems. This build works well on ArchLinux with Xorg installed. If the library is not built, try replacing it with this one.

About

👀🎨 This project is the beginning of the study of "Ray Tracing" technology!

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published