Skip to content
프로젝트

소개

Advanced, modular, coupled geomorpohology simulator for real-time procedural terrain generation.

과학 및 공학

이 수치를 측정하는 방법

What you can do

  • Vertexpool based heightmap visualization (OpenGL AZDO) to eliminate remesh cost
  • Layered terrain data structure using memory pooled, run-length encoded sediment sections as a linked list on a grid
  • Modular soil type description and "erosion chains"
  • Wind erosion particles based on Particle-Based Wind Erosion

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

SoilMachine

Advanced, modular, coupled geomorpohology simulator for real-time procedural terrain generation in C++.

Visualization with TinyEngine.

Article: An Efficient Data Structure for 3D Multi-Layer Terrain and Erosion Simulation

Description

SoilMachine is a unified geomorphology simulator for procedural terrain. It represents the culmination of a lot of work on particle-based transport and erosion systems (hydraulic and wind). Most importantly, a new layered terrain data structure allows for modeling surface and sub-surface phenomena based on particle transport with multiple soil types, which exceeds the functionality of voxels.

Banner

SoilMachine is written from scratch in very little code and visualized with TinyEngine using a technique called vertex pooling, which obviates the need to remesh the heightmap (ever). It is designed to be modular and expandable.

This repo is currently in development and will probably not be done soon but I am publishing it so updates can be followed live for anybody who is interested.

Utilization

Tested on Ubuntu20 LTS. See below for how to build.

Reading:

  <> optional
  [] required

Run:

  ./soilmachine <options/flags>

Options:

  -SEED [#]     Run using sed. No seed = random
  -soil [file]  Specify relative path to .soil file

  -oc [file]    Export color map to .png file at relative path (on program exit)
  -oh [file]    Export height map to .png file at relative path (on program exit)

Note: More options and flags are planned in the future. See the todo.md file for more information.

Controls

ESC: Toggle GUI
P: Toggle Pause (Paused by default!!!)

Scroll-Y: Zoom
Scroll-X: Camera Angle
Arrow Keys: Camera Orientation
C / V: Move Camera Up / Down
WASD: Move Camera in Plane

In the GUI, a number of things can be done, including Re-Seeding the map, setting erosion parameters, tuning the soil properties without re-launching the program and tuning the visualization. More features are planned in the future (see todo.md for more information).

Building & Running

SoilMachine is visualized using TinyEngine. Install TinyEngine using the instructions at the repo:

https://github.com/weigert/TinyEngine

TinyEngine is the only dependency (besides sub-dependencies).

Once that works, build SoilMachine using the makefile and run in place (no install):

cd ~
git clone https://github.com/weigert/SoilMachine
cd SoilMachine
make all
./soilmachine

Features

Implemented

  • Vertexpool based heightmap visualization (OpenGL AZDO) to eliminate remesh cost
  • Layered terrain data structure using memory pooled, run-length encoded sediment sections as a linked list on a grid
  • Modular soil type description and "erosion chains"
  • Modular description of transport types using a particle base class
  • GUI Interface for Initial Terrain
  • GUI Interface for Defining Sediment Properties
  • Data Export (Using Commandline Flags)

Planned

  • Parallelization of the particle base class terrain interaction
  • Sediment compaction / conversion
  • Water-logging using sediment porosity
  • Implementation of multiple water tables based on Particle-Based Hydrology

Screenshots

Some example outputs:

Output 1

Output 2

Output 3

License

MIT License

관련 프로젝트 살펴보기

불러오는 중…