Sakuwz / cashgenUE

Runtime Procedural Terrain Generator for UnrealEngine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cashgenUE

Procedural Terrain Generator for UnrealEngine 4.21

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)

It has dependencies on :

  • UE4RuntimeMeshComponent by Koderz, an enhanced procedural mesh component
  • UnrealFastNoise by myself, a modular noise generation plugin
  1. Create a new C++ project
  2. Checkout UE4RuntimeMeshComponent into your engine or project plugins folder ( https://github.com/Koderz/UE4RuntimeMeshComponent )
  3. Checkout UnrealFastNoisePlugin into your engine or project plugins folder ( https://github.com/midgen/UnrealFastNoise )
  4. Checkout this repository into your engine or project plugins folder
  5. Add "CashGen", "UnrealFastNoisePlugin" to your project Build.cs (required to package project)
PrivateDependencyModuleNames.AddRange(new string[] { "CashGen", "UnrealFastNoisePlugin" });
PublicDependencyModuleNames.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

About

Runtime Procedural Terrain Generator for UnrealEngine


Languages

Language:C++ 98.1%Language:C# 1.4%Language:C 0.5%