Skip to content

guszille/minecraft-clone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ZCRAFT

A simple Minecraft clone created by Gustavo Zille, using C++ and OpenGL.

The project is being developed as a way to study some computer graphics and game programming techniques.

Features

  • Procedural World Generation;
    • Terrain Generation: Using Perlin Noise to create a Height Map;
    • Random Flora Generation: Trees, Leaves and Flowers.
  • Optimized Mesh Building: Sampling only the visible faces to compose the generated chunk mesh;
  • Translucent/Transparent Blocks;
  • Lighting: Using the Blinn-Phong Lighting Model (BPLM) to create a directional light;
  • Shadows: Using a Shadow Map to store the depth of the fragments on the light view perspective;
  • Ambient Occlusion: Simulating Ambient Occlusion (AO) with "Corner Shadows";
  • Fog: Applying an exponential fog to hide the chunks far away;
  • Collisions;
    • AABB x AABB: Between the player and the solid blocks;
    • AABB x Ray: Used when the player wants to Insert/Remove a block on/from the world.
  • Physically Movement: Applying concepts like velocity, gravity and friction to the player's movement system;
  • Basic Inventory System.

Gallery

Enviroment

Enviroment 1 Enviroment 2

Ambient Occlusion (Simulation)

Enviroment 2 AO

Depth Map / Shadow Map

Depth Map

Building

House Bunker

Releases

No releases published

Packages

No packages published