Skip to content

midgen/cashgenUE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Runtime Procedural Terrain Generator for UnrealEngine

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published