OpenGL Game Engine

OpenGL Game Engine

redacted24/minigine

A Minecraft chunk generator and renderer, made with OpenGL and C++.

The game engine is still under development.

I wanted to learn graphics programming, how to use OpenGL, and how game engines work. And so I made a very little project.

Reloading chunks based on modified 2D Perlin noise


Engine Architecture

In development.

Examples

Minecraft Chunk Renderer

demo branch

I have currently made a small minecraft 32x32 chunk renderer. It shows a small segment of a landscape with dirt and grass blocks, with varying terrain height across different coordinates.

To render the different faces of the minecraft blocks I used a texture atlas and mapped every pixel to UV coordinates. Dirt blocks are very simple to build since all six faces can use the same texture. The top grass blocks use different texture for difference faces, based on their direction.

1024x1024 block atlas


To vary the terrain height, I used a seeded Perlin noise, based on the original implementation by Ken Perlin.

Author

Qiuyu Huang

Posted on

2026-11-23

Updated on

2026-11-27

Licensed under