# Cashgen - (kinda) Infinite Procedural World Generator

**URL:** <https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131>\
**Category:** Game Development\
**Tags:** unreal-engine\
**Created:** [May 6, 2016, 4:37pm UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131 "2016-05-06T16:37:03Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![mid\_gen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mid\_gen](https://forums.unrealengine.com/u/mid_gen)\
**Post date:** [May 6, 2016, 4:37pm UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/1 "2016-05-06T16:37:03Z")

</div>

I’ve been messing around with the ProceduralMeshComponent for a while, and after many revisions I’ve got a version that’s sort of ready for other people to see.

This is all built with community assets, thanks go out to :

@koderz for his RuntimeMeshComponent  
The OceanPlugin guys and gals  
@AaronWith2As for the grass BP  
Me for my UnrealFastNoise plugin 🙂

> **[GitHub - midgen/cashgenUE: Runtime Procedural Terrain Generator for UnrealEngine](https://github.com/midgen/cashgenUE)**
>
> Runtime Procedural Terrain Generator for UnrealEngine - GitHub - midgen/cashgenUE: Runtime Procedural Terrain Generator for UnrealEngine

\*\* branch is built on 4.15\*\*

Contributions welcome, particularly materials 🙂

The WorldManager actor spawns Zones around the designated Pawn as it moves, has basic LOD functionality.

Latest update! Demo scene now looks like this :

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/0/1/a014a26e0d0bc130b47f9aa614a658534046cba8.jpeg "WIP Procedural Generation - 2016-09-03") ](https://www.youtube.com/watch?v=KyDR3Nim4cQ)

LOD demo:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/6/1/f6167660908a27177e3e79f50113f6361384be2a.jpeg "WIP Procedural Generation - 2016-09-04") ](https://www.youtube.com/watch?v=cNt68riLFAw)

Updated - Removed RuntimeMeshComponent from project plugins

\*\*You will now need to install RuntimeMeshComponent to your engine version to run the project.  
\*\*

> **[Realtime Mesh Component Core in Code Plugins - UE Marketplace](https://www.unrealengine.com/marketplace/en-US/product/runtime-mesh-component)**
>
> Component for rendering procedurally generated meshes! Formerly known as Runtime Mesh Component.

 ![img.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/c/0/c0b3c9ac40d1497687fb488d30a8650b20abd224.png)

And then your level blueprint can do something like this (I’m setting a silly walk speed for debugging purposes) :

 ![img (1).png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/2/f/2f61c0a7803ed9cadcd948a14122884bfbe17c21.png)

---

<div class="post-metadata">

**Author:** ![Doublezer0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Doublezer0](https://forums.unrealengine.com/u/Doublezer0)\
**Post date:** [May 6, 2016, 5:04pm UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/2 "2016-05-06T17:04:55Z")

</div>

Awesome stuff. Thanks !

---

<div class="post-metadata">

**Author:** ![sivan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sivan](https://forums.unrealengine.com/u/sivan)\
**Post date:** [May 7, 2016, 6:07am UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/4 "2016-05-07T06:07:41Z")

</div>

Looks cool! What about performance, compared to a landscape?

---

<div class="post-metadata">

**Author:** ![mid\_gen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mid\_gen](https://forums.unrealengine.com/u/mid_gen)\
**Post date:** [May 7, 2016, 7:11am UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/5 "2016-05-07T07:11:35Z")

</div>

> [@;525759](#):
>
> Hi mid\_gen…
> 
> This looks super useful! Thanks for sharing…
> 
> While the textures aren’t UE4 landscape quality they’re not far off UDK landscapes.  
> Its all very passable and the collision looks excellent as good as a real landscape!  
> Could this work be mixed with what Simon is doing [here](https://forums.unrealengine.com/showthread.php?85084-The-Eden-Project) or maybe [this](https://forums.unrealengine.com/showthread.php?109335-Pull-Request-World-Origin-Shifting-in-MP) project…???

The quality of the landscape and materials is really down to how you configure it, I do plan on including some nice materials but I am a programmer 🙂 So if any artists want to contribute, I would be very happy to accept! This is with the patches turned up to 128x128 and the unit size down to 200 and some starter content materials. As you can see the mesh and collision update with that size patch is a problem.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/4/a/84a0c4ad16c42b02932dc385478ebeba4edcd7d3.jpeg "WIP Procedural Generation 2016-05-07") ](https://www.youtube.com/watch?v=Bj5_eyJ8uVE)

I am regularly chatting with Simon () on Slack about our projects. Thanks on the link for the world origin stuff…I am not actually resetting origin at the moment, need to get around to doing that.

I’ve been talking with Koderz on slack about enhancements to the ProceduralMeshComponents, particularly as regards smarter threading on the collision updates which should enable these higher res meshes to load in nice and smoothly.

---

<div class="post-metadata">

**Author:** ![mid\_gen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mid\_gen](https://forums.unrealengine.com/u/mid_gen)\
**Post date:** [May 7, 2016, 7:21am UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/6 "2016-05-07T07:21:09Z")

</div>

> [@sivan;525912](#):
>
> Looks cool! What about performance, compared to a landscape?

The performance bottleneck is currently the mesh and collision update, which I hope to be improved. Rendering of the landscape once it’s generated will depend how you go on the materials side of things.

Here’s a shot of 50x50 128x128 patches with some pretty unsympathetic LOD settings.

> **[Screenshot](https://prnt.sc/b192dd)**
>
> Captured with Lightshot

---

<div class="post-metadata">

**Author:** ![mid\_gen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mid\_gen](https://forums.unrealengine.com/u/mid_gen)\
**Post date:** [May 7, 2016, 8:43am UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/7 "2016-05-07T08:43:48Z")

</div>

Pushed a small update to allow inversion of the noise algorithm. I was wondering why the RidgedMultiFractal looked so different from my old noise generator 🆒 Now back looking much more natural. Updated the first video.

![Untitled.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/8/d/8dda5c5ee4c03eb3bb39318d75405aa74c2ed0c1.png)

---

<div class="post-metadata">

**Author:** ![sivan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sivan](https://forums.unrealengine.com/u/sivan)\
**Post date:** [May 9, 2016, 9:27am UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/8 "2016-05-09T09:27:50Z")

</div>

> [@mid\_gen;525929](#):
>
> The performance bottleneck is currently the mesh and collision update, which I hope to be improved. Rendering of the landscape once it’s generated will depend how you go on the materials side of things.
> 
> Here’s a shot of 50x50 128x128 patches with some pretty unsympathetic LOD settings.
> 
> [Screenshot by Lightshot](http://prnt.sc/b192dd)

Thanks, and great news, it means it can be a true landscape alternative. In case of my strategy game I want to have a cheap terrain material, with a few textures with slope and height based auto blending, and the whole level could be generated on game/level start… exploring your project is added to my to-do-list 🙂

---

<div class="post-metadata">

**Author:** ![mid\_gen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mid\_gen](https://forums.unrealengine.com/u/mid_gen)\
**Post date:** [May 17, 2016, 2:19pm UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/9 "2016-05-17T14:19:12Z")

</div>

> [@sivan;526882](#):
>
> Thanks, and great news, it means it can be a true landscape alternative. In case of my strategy game I want to have a cheap terrain material, with a few textures with slope and height based auto blending, and the whole level could be generated on game/level start… exploring your project is added to my to-do-list 🙂

There’s a basic slope/height material in the project based on some tutorial code I found that you can try out. I use Dokyo’s low poly asset packs from the marketplace for materials/meshes on my private repo.

Back from my travels…haven’t slept in 32 hours but I thought of a couple of silly mistakes in the code while I was on holiday and just pushed a small update to resolve them (Normal and tangent calcs were being duplicated 4 times, oops).

---

<div class="post-metadata">

**Author:** ![n00854180t](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@n00854180t](https://forums.unrealengine.com/u/n00854180t)\
**Post date:** [May 17, 2016, 9:19pm UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/10 "2016-05-17T21:19:41Z")

</div>

This looks awesome.

---

<div class="post-metadata">

**Author:** ![mid\_gen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mid\_gen](https://forums.unrealengine.com/u/mid_gen)\
**Post date:** [May 18, 2016, 7:07am UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/11 "2016-05-18T07:07:02Z")

</div>

Thanks 🙂

Minor update this morning, changed terrain to spawn around the world origin.

Next up, materials.

---

<div class="post-metadata">

**Author:** ![Ideoken](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ideoken/32/467929_2.png) [@Ideoken](https://forums.unrealengine.com/u/Ideoken)\
**Post date:** [May 25, 2016, 9:12pm UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/12 "2016-05-25T21:12:07Z")

</div>

Hello, your plugin look awesome, i downloaded the plugin from github, put the files on my plugin project folder. but i have an error when i try to open it. Can you tell me how to fix it please ?

---

<div class="post-metadata">

**Author:** ![SaxonRah](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SaxonRah](https://forums.unrealengine.com/u/SaxonRah)\
**Post date:** [May 28, 2016, 5:28am UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/13 "2016-05-28T05:28:46Z")

</div>

> [@IdeoLive;536182](#):
>
> Hello, your plugin look awesome, i downloaded the plugin from github, put the files on my plugin project folder. but i have an error when i try to open it. Can you tell me how to fix it please ?

The error tells you, it cannot find a blueprint referenced in the game mode. Therefor you either remove the reference or fill the reference up with a character

---

<div class="post-metadata">

**Author:** ![mid\_gen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mid\_gen](https://forums.unrealengine.com/u/mid_gen)\
**Post date:** [May 29, 2016, 10:20am UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/14 "2016-05-29T10:20:56Z")

</div>

> [@IdeoLive;536182](#):
>
> Hello, your plugin look awesome, i downloaded the plugin from github, put the files on my plugin project folder. but i have an error when i try to open it. Can you tell me how to fix it please ?

There are a few things that I reference in the demo level you’ll want to add.

In the editor, click ‘Add New’ and then ‘Add or Content Pack’, and add :

1. Starter Content - The sample landscape material I use references a few textures from there
2. One of the character features (Third Person/First Person). The WorldManager just needs a reference to any pawn, I’ve used the ThirdPerson one in the demo videos.
3. My demo level uses [[Community Project] WIP Weather & Water Shader - Game Development - Epic Developer Community Forums](https://forums.unrealengine.com/showthread.php?42092-Community-Project-WIP-Weather-amp-Ocean-Water-Shader) for the water. If you want to use that you’ll need to include their plugin in your project as well

---

<div class="post-metadata">

**Author:** ![Ideoken](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ideoken/32/467929_2.png) [@Ideoken](https://forums.unrealengine.com/u/Ideoken)\
**Post date:** [May 31, 2016, 4:40am UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/15 "2016-05-31T04:40:15Z")

</div>

Sorry guys if i seem to be a noob, but her is the message i have when i try to open the project

UnrealLibNoise Plugin missing

![8c3c2d44c3de2a313ead549d7052b654e1c91e36.jpeg](https://d1ap1mz92jnks1.cloudfront.net/images/transparent.png)

---

<div class="post-metadata">

**Author:** ![Stoon82](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Stoon82](https://forums.unrealengine.com/u/Stoon82)\
**Post date:** [June 8, 2016, 7:10pm UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/16 "2016-06-08T19:10:46Z")

</div>

Awesome stuff. Actually just what i was aiming at with my project as a base setup for my game… but quite more advanced than what I would be able to manage to achieve in any near future. With this I have no more excuses to start testing out my gameplay-concept.  
For the material: Do you use vertex-colors? I was planning on using them to blend up to 5 different materials als biome-grounds - but the color structure is broken for blueprints as it seems… I can only use Linear Color from there, meaning I can’t really set up arrays of vertex colors to use with procedural mesh generation.  
But I have a test-material blending on different heights, so far I set up a transition at water lever (or just above … similar to yours) and one near the mountain peaks for stone or glaciers.  
Adding blending by slope is just another option I was going to integrate for my project. As all the blending (height, slope, vertex color) would be in one material: are there any concepts to actually put different materials onto the meshes and have a smooth transition?

I hope you keep up the good work … I can’t wait to try your code myself. Too bad it has to wait for next week.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_0df12f74](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0df12f74](https://forums.unrealengine.com/u/anonymous_user_0df12f74)\
**Post date:** [June 8, 2016, 7:31pm UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/17 "2016-06-08T19:31:01Z")

</div>

This looks awesome! Great work man, wish I had discovered this sooner 🙂

We had tried integrating a procedural terrain system back in 4.7 or so but ended up removing it for performance reasons as it generated a small amount pretty much every tick. This looks like a better solution, building world tiles is what I really wanted to do with the old one.

Going to download and try it out, it looks great. Knowing it plays nicely with the OceanPlugin is a big bonus, thanks!!

---

<div class="post-metadata">

**Author:** ![Stoon82](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Stoon82](https://forums.unrealengine.com/u/Stoon82)\
**Post date:** [June 10, 2016, 6:57am UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/18 "2016-06-10T06:57:13Z")

</div>

I am also having a hard time installing the plugin… even after adding the LibNoise Plugin and activating it, I get an error message “Missing or incompatible modules in CashGen plugin” at start of UE4.12 (also tried 4.11 and 4.10 with the same result). I put the plugins to the plugins folder of the engine, not the project, as I also recieved this and/or other error messages when the plugins where just in the project’s plugins folder.  
Any advice on what to do?

---

<div class="post-metadata">

**Author:** ![mid\_gen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mid\_gen](https://forums.unrealengine.com/u/mid_gen)\
**Post date:** [June 10, 2016, 8:25am UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/19 "2016-06-10T08:25:27Z")

</div>

> [@IdeoLive;538848](#):
>
> Sorry guys if i seem to be a noob, but her is the message i have when i try to open the project
> 
> UnrealLibNoise Plugin missing
> 
> ![8c3c2d44c3de2a313ead549d7052b654e1c91e36.jpeg](https://d1ap1mz92jnks1.cloudfront.net/images/transparent.png)

Hmms, I must have left a reference to that in the project somewhere. It’s not used anymore so should work fine without the warning.

I’m going to update to 4.12 and try out Koderz’ realtime mesh stuff when I’m back from vacation, and make sure any of these niggles are cleaned up.

---

<div class="post-metadata">

**Author:** ![mid\_gen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mid\_gen](https://forums.unrealengine.com/u/mid_gen)\
**Post date:** [June 10, 2016, 8:29am UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/20 "2016-06-10T08:29:17Z")

</div>

> [@Stoon82;545372](#):
>
> I am also having a hard time installing the plugin… even after adding the LibNoise Plugin and activating it, I get an error message “Missing or incompatible modules in CashGen plugin” at start of UE4.12 (also tried 4.11 and 4.10 with the same result). I put the plugins to the plugins folder of the engine, not the project, as I also recieved this and/or other error messages when the plugins where just in the project’s plugins folder.  
> Any advice on what to do?

Err yeah derp on my part. Just checked the UPROJECT file on github and it still had the UnrealLibNoise dependency in it. I’ve committed the change via the web but I’m not in front of my UE setup at the moment to test, but that should sort it out.

---

<div class="post-metadata">

**Author:** ![RJM](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RJM](https://forums.unrealengine.com/u/RJM)\
**Post date:** [June 12, 2016, 11:39pm UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/21 "2016-06-12T23:39:53Z")

</div>

hey awesome job looks like a great plugin.  
sadly, i can’t open your uproject in 4.12.2 or 4.11.2

first i click on your project and i get this.  
 ![RebuildWithDiffEngine.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/6/e/86e3c0d366d35961a9bd1acf9032e815ac535aef.png)

so i rebuild and get this  
 ![couldNotBeCompiledBuildFromSource.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/7/9/79340acfc494a1b395908e23e9c35cf0f74ce67e.png)

then i try to generate visual studio files so i can compile but i get this

 ![wontGenerateVisualStudioFiles.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/9/0/904cc9b33b8bd68b1b031f7f292797f582a545c2.png)

i know this is a WIP but just wanted to let you know.

can’t wait to mess around with this. looks dope.

[Next page](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131.md?page=2)
