Java voxel raytracer
Jan 12, 2023 – Feb 3, 2023
Overview
This is an interactive implementation of the algorithm presented in “A Fast Voxel Traversal Algorithm for Ray Tracing” by John Amanatides and Andrew Woo (Link). It’s written in Java and uses an OpenGL fragment shader for the raytracing computations. The voxel data is uploaded to the GPU as a 3D RGBA texture. Each pixel represents a single voxel: the first three components (R, G, B) specify the color of the voxel and the fourth component (A) specifies if the voxel is opaque (0 = air, otherwise = opaque).
Repository
Here is a link to the repository.
Examples
Example 1 (sRGB, Jitter Antialiasing)

Example 2 (sRGB, Jitter Antialiasing, Glossy Reflections)
