Skip to content

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

RayTracer

Description

This is a ray tracer program that casts rays to render photogenic spheres. The program reads sphere data from a specification file listing dimensions (spheres.txt), calculates the intersection points of the rays with the spheres, handles shading and shadows of spheres on each other, and outputs the rendered image in PPM format.

How to Compile

To compile the ray tracer use the following command:

gcc rt.c vec.c light.o -o raytracer -lm

How to Execute

To execute the ray tracer program with a coordinate file titled "spheres.txt", use the following command:

./raytracer < spheres.txt > output.ppm

Example Output

Example Output

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages