Skip to content

RayTracer made in C using Mlx library. It takes scenes.rt files containing coordinates of obj colors and light position as input, parse it, and create the scene.

Notifications You must be signed in to change notification settings

frame-src/miniRT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mini RT


First Image we ever rendered


This project is an introduction to the world of Raytracing.

So once you run "make" the

./miniRT ./source/<mapname>.rt

will be capable of render beautiful images like this:


The same but in the input2.rt the camera z component is farther

We had to handle multiple object, cylinders planes and spheres:


Multiple objs composition


...and diffent settings for the camera such as the FOV:

Same composition but maxFOV


Different atmosphere can be settled setting different Ambient Light:


Single sphere, dark atmo


...

Ambient Light ratio = 0.9


Or the brightness can be modified changing the ration of the Spot Light:


Light parameter ratio = 0.1



Enjoy


About

RayTracer made in C using Mlx library. It takes scenes.rt files containing coordinates of obj colors and light position as input, parse it, and create the scene.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •