Skip to content
This repository was archived by the owner on Oct 24, 2023. It is now read-only.

A C++ implementation of the fast voxel traversal algorithm.

License

Notifications You must be signed in to change notification settings

cgyurgyik/fast-voxel-traversal-algorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

399dcd9 · May 19, 2022

History

43 Commits
May 19, 2022
Feb 13, 2020
Feb 12, 2020
May 6, 2020
Feb 19, 2020
Mar 1, 2020
Mar 2, 2020
Mar 2, 2020
Feb 13, 2020
Feb 13, 2020

Repository files navigation

About

A prototype for the implementation of Amanatides & Woo's "A Fast Voxel Traversal Algorithm" in C++. Note, this has not been tested, and is not guaranteed to be bug-free. An overview of the algorithm can be found here.

Notes

  • Instead of using double or float, I've decided to use value_type which can be set to a user-specified type in Vec3.h.
  • An optional enhancement that can be done is calculating the ray's inverse direction upon construction of the ray. This will ensure inverse direction is calculated only once per ray.

References