Skip to content

spookier/miniRT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

miniRT

Welcome to the beautiful world of raytracing !

as i venture into the realm of raytracing, the only way out is rendering it as my new reality...
the boundaries between me and my creation blur, blurring the line that i have drawn
the line that was used to discern the echo of the real from the whisper of the rendered
here in the rendered... reality is a fragile word, a tightrope that can lead one into madness...
here in the rendered... the dance of light and shadow continues

In collaboration with @sleepychloe

  • Mandatory part without any bonus
  • Tested on Linux
  • Success 100/100

Installation

  git clone https://github.com/spookier/miniRT.git
  cd miniRT
  make

if compile fails with message "can't find a suitable X11 include directory", install it via

  sudo apt-get install gcc make xorg libxext-dev libbsd-dev

Usage

  ./miniRT [maps]

example

  ./miniRT maps/minirt_scene.rt

Mandatory part

scene

image

object

image

↳ object: without any rotation

image

↳ object rotation applied: plane and cylinder

camera

image

↳ camera position(0,0,-10), normal vector(0,0,1)

image

↳ camera position(0,0,10), normal vector(0,0,-1)

image

↳ camera position(10,0,0), normal vector(-1,0,0)

image

↳ camera position(-10,0,0), normal vector(1,0,0)

image

↳ camera position(0,10,0), normal vector(0,-1,0)

image

↳ camera position(0,-10,0), normal vector(0,1,0)

image

↳ camera rotation applied

image

↳ camera rotation applied

light

image

↳ light position(-3,0,-2)

image

↳ light position(3,0,-2)

image

↳ light position(0,-3,-2)

image

↳ light position(0,3,-2)

image

↳ light position(0,0,-5)

image

↳ light position(0,0,5)

About

a simple raytracing engine in C

Resources

Stars

Watchers

Forks

Releases

No releases published