Skip to content

archfella/3D-Procedural-Terrain-Mesh-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terrain Mesh Generator

Description

  • Terrain Mesh Generator implemented in C/C++ using ImGui and OpenGL libraries. Currently available on macOS, but can be made to work on Linux with minor tweaks in code.

Table of Contents

  1. Features
  2. Installation
  3. Usage
  4. License
  5. Sources

Features

Biome selection:

User can choose between 5 different biome types

Biome Selection

Texture-height mapping:

Every texture is mapped to a certain height on the y-axis. User can change the height boundaries for different textures and alter the look of the terrain mesh.

Biome Selection


Installation

Prerequisites:

Before building the project, ensure you have the following installed:

  • CMake (version 3.10 or later)
  • A C++ Compiler supporting C++17
  • GLFW:

On macOS, you can install GLFW using Homebrew:

brew install glfw
  • GLEW:

Install GLEW using Homebrew:

brew install glew
  • OpenGL:

macOS provides OpenGL as part of its system libraries, so no additional installation is needed.

  • ImGui:

The ImGui library is included in the project under the vendor/ImGui directory, so no extra installation is needed for it.


Usage:

Controls

  • Fly mode allows you to move and look around the scene. Hides and captures your mouse cursor.
  • User-input mode shows your mouse cursor and allows you to interact with the ImGui window.

(Alps, Diffuse) Alps-diffuse

(Rocky mountains, Diffuse) Rocky-mountains-diffuse

(Flatlands, Diffuse) Flatlands-diffuse

(Desert, Diffuse) Desert-diffuse

(Tundra, Diffuse) Tundra-diffuse


License

  • This project uses ImGui, which is licensed under the MIT License, see LICENSE.

  • This project uses STB, which is licensed under the MIT License, see LICENSE.


Sources

About

Terrain Mesh Generator implemented in C/C++ using ImGui and OpenGL libraries.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published