Skip to content

A simple raytracer which can produce images of raytraced spheres. Written for the Foundations of Computer Graphics course at the University of Vienna.

Notifications You must be signed in to change notification settings

memoriesadrift/sphere-raytracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to run:

In the root folder compile with make Then you can run the produced executable however you wish, specifying the input file path with the -f flag, such as: ./raytracer.x -f scenes/example1.xml Alternatively, you can generate output files for examples 1 through 3 by running make exec in the project root.

You can also get rid of objects files with make clean, artifacts (ppms and executables) with make clean-artifacts or everything with make full-clean

Input Specs

The raytracer takes XML files describing the scene it should render as input, adhering to this specification.

Additional and General Remarks

The main reason for choosing C was to explore procedural programming and its patterns and methods in larger projects, so I deliberately chose to avoid OOP.

My code should compile on any machine with gcc and make installed. I tried to adhere to this style guide while programming.

About

A simple raytracer which can produce images of raytraced spheres. Written for the Foundations of Computer Graphics course at the University of Vienna.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published