Giter Site home page Giter Site logo

ernyoke / fractal-erosion Goto Github PK

View Code? Open in Web Editor NEW
6.0 4.0 1.0 129.28 MB

Procedurally generate terrains using Diamond-square fractal algorithm. Apply thermal and hydraulic erosion to the generated terrain.

License: MIT License

CMake 28.28% C++ 68.68% GLSL 2.16% C 0.82% Shell 0.06%
diamond-square-algorithm fractal opengl erosion

fractal-erosion's Introduction

Fractal Erosion

Procedurally generate terrain using Diamond-square fractal algorithm.

alt text

Simulate hydraulic and thermal erosion using the procedurally generated terrain.

alt text

Build

The project expects that we have a C++2a compiler.

Ubuntu - tested with gcc (Ubuntu 12.3.0-1ubuntu1~23.04) 12.3.0

Prerequisites

  • CMake 3.25 or newer
  • gcc

Run the following commands from a terminal:

git clone --recurse-submodules --remote-submodules [email protected]:Ernyoke/fractal-erosion.git
sudo apt-get install xorg-dev libglu1-mesa-dev
./configure.sh
./build.sh

The output of cmake will be stored in the build folder. The executable binaries will be stored in the bin folder.

MacOS

Prerequisites

  • CMake 3.25 or newer
  • gcc or clang

The output of cmake will be stored in the build folder. The executable binaries will be stored in the bin folder.

Run the following commands from a terminal:

git clone --recurse-submodules --remote-submodules [email protected]:Ernyoke/fractal-erosion.git
./configure.sh
./build.sh

Windows - tested with MSVC

Prerequisites

  • Visual Studio 2022 (Community Edition should work just fine)
  • CMake 3.25 or newer

Run the following commands from PowerShell:

git clone --recurse-submodules --remote-submodules [email protected]:Ernyoke/fractal-erosion.git
mdkir build
cmake . -G "Visual Studio 17 2022" -A x64 -B build
msbuild.exe ALL_BUILD.vcxproj /p:configuration=release /p:platform=x64

The output of cmake will be stored in the build folder. The executable binaries will be stored in the bin folder.

With Visual Studio 2022 msbuild.exe is installed automatically. The default location for this is usually Program Files/Microsoft Visual Studio. In case the msbuild executable is not present on the path, we can execute it as follows:

& 'C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\msbuild.exe` ALL_BUILD.vcxproj /p:configuration=release /p:platform=x64

Running the application

If the build was successfully, in the bin folder we should have a binary executable with the name of fractals. We can simply execute it as this: ./fractals.

Credits

fractal-erosion's People

Contributors

ernyoke avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

endre-szilagyi

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.