VoxelSpace is a 2.5D terrain engine and ray casting renderer that produces navigable 3D landscapes from height and color maps. It functions as a real-time voxel landscape viewer and height map visualizer, converting grayscale elevation data into interactive terrain from a first-person viewpoint.
The project implements a voxel space rendering algorithm that projects height maps into 3D landscapes using ray casting and vertical scanlines. It optimizes rendering performance through front-to-back drawing with a y-buffer to skip occluded pixels, and applies level-of-detail distance culling to reduce detail for far-away terrain. The viewing angle can be rotated by transforming map coordinates with a rotation matrix before rendering.
The terrain appearance is driven by sampling elevation and color data from separate 2D arrays, with the final image constructed by drawing one vertical line of pixels per screen column. The landscape can be navigated using keyboard or mouse controls.