Skip to content

SirMorfield/miniRT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

miniRT

This 42's curriculum project implements a basic ray tracer in C. Completely from scratch, the only library (functions) allowed where:

  • minilibX, a very basic window manager
  • open, close, read, write, printf, malloc, free, exit
  • sin(), cos(), sqrt() and all other math library functions

It can run as an application or export to a bmp file called scene.bmp It renders on the CPU, featuring antialiasing and multithreaded rendering It supports the primitives:

  • spheres
  • planes
  • cylinders
  • squares
  • triangles

Usage

Supports both macOS and Linux

make bonus
./miniRT ./rt/room.rt
./miniRT --save ./rt/room.rt

Renders

See doc/renders for more

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published