• Stars
    star
    445
  • Rank 98,085 (Top 2 %)
  • Language
    C++
  • License
    MIT License
  • Created almost 9 years ago
  • Updated almost 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Runtime Procedural Terrain Generator for UnrealEngine

cashgenUE

Procedural Terrain Generator for UnrealEngine 4.25

This plugin generates heightmap-based terrain tiles in realtime, and move the tiles around to track a player pawn.

CashGen Demo

Features:

  • Multithreaded heightmap, erosion and geometry generation
  • A simple hydraulic erosion algorithm
  • Multiple tile LODs with per-LOD collision, tesselation and subdivision
  • Dithered LOD transitions (when using a suitable material instance)
  • Slope scalar in vertex colour channel
  • Depth map texture generation for water material

It has dependencies on :

  • UnrealFastNoise by myself, a modular noise generation plugin
  1. Create a new C++ project
  2. Checkout UnrealFastNoisePlugin into your engine or project plugins folder ( https://github.com/midgen/UnrealFastNoise )
  3. Checkout this repository into your engine or project plugins folder
  4. Add "CashGen", "UnrealFastNoisePlugin" to your project Build.cs (required to package project)
PrivateDependencyModuleNames.AddRange(new string[] { "CashGen", "UnrealFastNoisePlugin" });
  1. Create a new Blueprint based on CGTerrainManager
  2. OnBeginPlay in the blueprint, call SetupTerrain() and fill out all required parameters
  3. Add a CGTerrainTrackerComponent to any actors you wish to have terrain formed around
  4. You can optionally tell the tracker component to hide/disable gravity on the spawned actors until terrain generation is complete
  5. Vertex Colours - Red = slope. Green = the biome mask specified in terrain config

For samples, please check :

https://github.com/midgen/CashDemo