◀ Back
◀ Back

Brickscape [Demo]

Brickscape [Demo]Launch

The "Minecraft Clone" project, developed with TypeScript and Three.js, is a technical endeavor. It employs instanced mesh rendering and shader code injection to handle a large variety of textured blocks efficiently. The project also features a basic day-night cycle and offers two exploration modes: bird-flight view and first-person view, providing an engaging experience for users interested in 3D graphics and game development.

Overview:

A project aimed at visualizing an infinite voxel world. The world procedurally generates based on set rules, accommodating parameters from base noise to structure altitude considerations.

Screenshot

Key Features:

  • Procedural Generation: Presupposes the placement of full structures, such as a group of blocks, during generation. This includes predefined structures like trees (shown in the demo).

Visualization Technique: Utilizes Three.js for visualization. Block rendering employs:

alt text

  • Instanced geometry
  • Custom shaders
  • Instance attributes

This combination allows extensive control over block attributes while ensuring efficient resource usage. The chunk organization closely mirrors the processes observed in Minecraft™.

Performance Optimizations:

alt text alt text

Tasks like chunk generation and updates are spread asynchronously over time. This minimizes heavy peak loads, preventing application freezes. Rendering, while resource-intensive, is optimized for efficiency in a JavaScript environment. Occlusion-Type Shading: A shading method based on neighboring blocks and their positions. It offers a visually appealing effect, adding depth to the imagery.

Demo Exploration Modes:

alt text alt text

Bird's-Eye View (MapControls): An aerial perspective of the voxel world.

First-Person View: Features basic character-block collision and allows activities like walking, running, and jumping.

Prototyped and implemented by @sanyabeast