Skip to content

urieltfk/raytrace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic raytracer

This project is done according to the following guide: https://raytracing.github.io/books/RayTracingInOneWeekend.html

Other sources used: https://www.scratchapixel.com/lessons/3d-basic-rendering/introduction-to-ray-tracing/implementing-the-raytracing-algorithm.html

https://pragprog.com/titles/jbtracer/the-ray-tracer-challenge/

A good explainatioin on vector normals and what they are for: https://www.youtube.com/watch?v=FiYDkMZCSF4

file strucutre

  • main.cpp - program entry point.
  • include - folder for header files.
  • test - TBD, tests for different models etc.

requirements

  • A cpp compiler compatible with C++20

compiling and running:

To create a debugable .out file, just write make end press enter. the other options are as follows:

  • image - makes and creates an image according to the parameters supplied in main.cpp.
  • clean clears .out files, any leftovers from compilation and generated images.
  • opt - creates an O3 optimized build as opt.out.

Technologies used:

  • CPP20
  • Makefile

About

A short raytracing project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published