voxelminer
Raster Game Engine
VoxelMiner is a raster game engine written in WebGL2 for purpose of learning about game engines and graphics programming. It has many relevant features.
First off, itβs designed in a modular structuree where there are three main components:
- SceneGraph: Manages the 3D scene, including objects and their properties
- Renderer: Handles rendering of the scene with WebGL
- Camera: Provides camera controls and perspective management
There are various other interesting features like:
- Cameras: 6DoF FPS camera, Arcball with keyboard and mouse controls
- Phong Lighting Model: Implements Phong shading for realistic lighting(Point Lights)
- Skybox: Supports skybox rendering for immersive environments
- CrossHair: Displays a crosshair for FPS camera
- 3D Primitives: Supports rendering of 3D primitives like cubes, spheres, and planes
- Real Time Stats: Displays real-time stats like FPS and frame time

Date: 5/10/2025
Finally got around to doing procedural terrain generation using simplex noise where I used 2d and 3d simplex noise to generate the top level terrain and the caves respectively. The terrain generation for the top level is done using 2D simplex noise where I get the simplex noise value for each point in the 2D plane and then threshold, multiply it by a certain number and add cubes at a specific x,y upto that level and I do it for 30x30 xy grid.

Something similar is done in the caves with the simplex noise where I get the 3D simplex noise for each point in x,y,z grid and at each point, I thresold the value and if itβs above threshold, I add a cube.
