Skip to content

Streliteela/cashgenUE

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

216 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cashgenUE

Procedural Terrain Generator for UnrealEngine 4.17

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

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

There are sample levels and blueprints in the plugin content folder. In View Options in the content browser ensure 'Show Plugin Content' is checked. You should now see 'CashGen Content' in the content browser.

Lvl_MP_Sample contains a sample scene.

About

Procedural Terrain Generator for UnrealEngine 4.17

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C++ 97.6%
  • C# 1.5%
  • C 0.9%