u-lo-l / miniRT

Mini raytracing in C

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mini raytracing in C

Notion (KR)

https://u-lo-l.notion.site/MiniRT-d1d62b4890274dddb36b79dec2c259d3

Implementation

  • Phong reflection model (ambient, diffuse, specular)
  • object : plane, quadrics( sphere, cylinder, ellipsoid, .... )
  • light source : spot light
  • keyboard, mouse input event
  • camera move, rotation.
  • object translation, rotation, scaling
  • image mapping
  • nomal map
  • Color disruption : checkerboard
  • mirror reflection
  • bounding sphere
  • multi threading : 4

Sample images

Works on Mac(intel)

cd bonus
make
./miniRT RT_files/[~]/[~.rt]

Demo (x4 faster)

About

Mini raytracing in C


Languages

Language:C 84.7%Language:Objective-C 13.2%Language:Makefile 2.1%Language:Shell 0.0%