Ben-Ramchandani / ray_tracer

Renders simple 3d images.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ray tracer

A ray tracing program with diffuse and specular reflection. Uses triangles, spheres and point lights. Images are output in PNM binary format (P6).

Useage

make && ./ray or make run. The file is printed to stdout by default. make disp attempts to use the tool pnmtopng from Netpbm to convert the image to a png, then display it with the image veiwer eog.

About

Renders simple 3d images.


Languages

Language:C++ 90.2%Language:C 5.5%Language:Makefile 4.3%