• This repository has been archived on 24/Oct/2023
  • Stars
    star
    160
  • Rank 233,329 (Top 5 %)
  • Language
    C++
  • License
    MIT License
  • Created over 4 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

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