Lunar Terrain Generation
To create an authentic lunar landscape, a terrain generation system was implemented using digital elevation modeling techniques. The moon’s topography was designed with Blender, drawing inspiration from NASA’s lunar survey data. The resulting 3D model was exported as a grayscale heightmap, where pixel luminance corresponds to elevation: darker pixels represent lower areas, such as crater floors, while lighter pixels indicate higher features like hills.
On the website, an algorithm processes the heightmap data, converting each pixel into a positioned 3D coordinate. The generated terrain is enhanced with a normal map to create realistic surface textures that interact naturally with light. To add a visual variety, a system of randomized textures produces a natural gradient of moon dust coloration, with shade variations linked to the terrain’s elevation.