https://github.com/thanduriel/func-renderer
OpenGl 3.3 based visualiser for noise functions and terrain generation
https://github.com/thanduriel/func-renderer
expression-template procedural-generation
Last synced: about 1 month ago
JSON representation
OpenGl 3.3 based visualiser for noise functions and terrain generation
- Host: GitHub
- URL: https://github.com/thanduriel/func-renderer
- Owner: Thanduriel
- License: mit
- Created: 2016-11-15T20:54:11.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-03-09T14:33:45.000Z (about 5 years ago)
- Last Synced: 2025-02-11T09:51:26.804Z (3 months ago)
- Topics: expression-template, procedural-generation
- Language: C++
- Homepage:
- Size: 3.67 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# func-renderer
This is OpenGl 3.3 based renderer for noise functions to experiment with terrain generation.
It uses expression templates to compose multiple height functions in compile time.# build
* clone repo
* update submodules
* Use the CMakeLists.txt in the main folder to generate platform depend build files
* build with toolchain of your choice
tested: msvc2019, gcc 8.1.0# usage
A variaty of useful functions can be found in functions1d.hpp, functions2d.hpp and modifiers.hpp.
Examples on how to combine and render them are located in scene.cpp.
To display a specific scene change the type in main.cpp.If you want to display 1D functions make sure to #define MODE2D in config.hpp,
otherwise remove it.# further read
* http://staff.fh-hagenberg.at/burger/publications/reports/2008GradientNoise/Burger-GradientNoiseGerman-2008.pdf
A detailed explananation on creating 1 to N-dimensional gradient noise functions* http://www.decarpentier.nl/scape-procedural-basics
* http://www.decarpentier.nl/scape-procedural-extensions
generating different terrains based on modified and combined perlin noise* http://www.planetside.co.uk/forums/index.php?action=dlattach;topic=18400.0;attach=50831
creating dunes to form deserts