VoxCraft VR project preview

VoxCraft VR

May 2021

Project

UT Austin computer graphics final, with Grace Liu

Built with
  • A-Frame
  • JavaScript
  • WebXR
Terrain
We drew only the exposed faces of each 32 × 32 × 32 chunk. A 5 × 5 grid of chunks follows you as you walk. Walk back to a hill you’ve dug into and the hole is still there.
The voxel mesh around the player in the block world.
Voxel mesh
Terrain generation
Perlin noise sets the height of the hills. We use the height to choose the block texture and scatter trees and lanterns across the map.
Movement
Press B to switch between flying and walking. On foot, you can walk straight up a one-block ledge.
First-person view of the player walking through the terrain.
Walking
Building and mining
Point at a block and the cursor hugs the face you’re aiming at. Pull the trigger to build there. To mine a block by hand, keep swinging at it. Open the inventory with A and equip the pickaxe to get through it almost instantly.
The player places blocks using the VR controller.
Building
The player selects and uses the pickaxe.
Pickaxe
The player mines the blocks beneath their feet.
Never dig straight down!