Skip to content

MrMoustach/MiniRT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is MiniRT

A mini RayTracer made using c and a 42 mini graphics library MiniLibX.

How to install

Only for testing, if you are doing this project for school too, or simply intrested in creating a RayTracer, i encourage you to write you own code instead of copying it.

if you haven't already, you have to install MinilibX (MLX) in order to use this project

MinilibX for linux,

MinilibX for mac (latest i could find)

MAC

Clone this repo :

    git clone --recurse-submodules https://github.com/MrMoustach/MiniRT.git

Then :

    Make

LINUX

Also clone :

    git clone --recurse-submodules https://github.com/MrMoustach/MiniRT.git

Then :

    Make linux

How to use

After making the program, all you need now is to create your own .rt file or use the ones provided in /scenes folder

then you can run the following command :

    ./miniRT path/to/file/filename.rt

example :

    ./MiniRT scenes/scene.rt

To save an image :

    ./MiniRT filename.rt --save

Some images

Here is Wolf.rt :

alt text

Here is scene.rt with all the objects:

alt text

Collisions:

alt text

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published