Skip to content

A simple C++ raytracer with shadows, reflection, and refraction

Notifications You must be signed in to change notification settings

Sander1801/raytracer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple C++ raytracer with shadows, reflection, and refraction.

Making / Running the project:
  - Use 'make pic_name.png' to run the raytracer with 'pic_name.nff'.
  - This generates a .pam, and converts to a .png automatically.
  - Or, just run './bin/trace pic_name.nff' to generate the .pam file.
  - Also accepts support from stdin. ie: './tetra -s 3 | ./bin/trace'

Configuration:
  - See the top of 'src/main.cpp' for program settings and cli flags.

Features:
  - Both sphere and triangle tracing.
  - Different shading modes, shadows, reflections, refraction.

Directory structure:
  - bin:  The raytracer binary.
  - nff:  All nff files.
  - pics: All pictures generated by raytracer.
  - src:  Source files (cpp, h).

About

A simple C++ raytracer with shadows, reflection, and refraction

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 88.6%
  • Python 9.5%
  • Makefile 1.4%
  • C 0.5%