# 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:** 2

<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 13, 2016, 8:55am UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/22 "2016-06-13T08:55:34Z")

</div>

I’ve not tested on 4.11 or 4.12, but that error is related an old plug-in I used. I thought I had removed all the references the other day.

Check the .uproject and build.cs files for any instances of UnrealLibNoise and remove them.

---

<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 13, 2016, 8:07pm UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/23 "2016-06-13T20:07:07Z")

</div>

there were 2 ‘UnrealLibNoise’ references in cashgenUE.Build.cs file and after removing them the project opened. thank you.

---

<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 14, 2016, 7:05am UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/24 "2016-06-14T07:05:04Z")

</div>

Cool! I’m on vacation at the moment but next week I’ll be working on getting the plug-in cleaned up and converted to 4.11/4.12.

Also going to move it to Koderz runtime mesh component and see how that performs

---

<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 17, 2016, 9:23pm UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/25 "2016-06-17T21:23:50Z")

</div>

Just the errors I was getting. Thanks, now I have good hope I can try this plugin tomorrow.  
Why did you move away from libnoise? I have been messing with the c++ version of libnoise in the last days, using the complex planet example to populate a mysql table with height data. Do you think the UnrealLibnoise plugin could mimic the functionality of complex planet to create the data on the fly, maybe even from blueprints (and be performant)?

---

<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 18, 2016, 8:02am UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/26 "2016-06-18T08:02:05Z")

</div>

Libnoise is GPL licensed so you flat out cannot use it in an Unreal Engine project.

Shame as UnrealLibNoise is a nice way of configuring modules in blueprint…but no use for anything you plan to release. I do plan on adding module/layers support to the Fastnoise wrapper. Going to give a quick talk on the terrain generator at our user group next week so I’ll be spending some time on it, adding the foliage placement, upgrade to 4.12, trying out koderz’ runtime mesh component etc.

---

<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 18, 2016, 8:04am UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/27 "2016-06-18T08:04:21Z")

</div>

> [@Stoon82;549876](#):
>
> Just the errors I was getting. Thanks, now I have good hope I can try this plugin tomorrow.  
> Why did you move away from libnoise? I have been messing with the c++ version of libnoise in the last days, using the complex planet example to populate a mysql table with height data. Do you think the UnrealLibnoise plugin could mimic the functionality of complex planet to create the data on the fly, maybe even from blueprints (and be performant)?

I did create a 10-module libnoise blueprint and performance wasn’t a problem, the generation is done off the game thread so not a big.

---

<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 19, 2016, 10:40am UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/28 "2016-06-19T10:40:47Z")

</div>

Right, I’ve moved the old release into a 4.10 branch.

is now updated to 4.12, and I’ve replaced the ProceduralMeshComponents with Koderz’ RuntimeMeshComponent. Also updated with the 4.12 version of OceanPlugin (and included the ocean and sky components in the repo). All dependency issues should be sorted.

Edit - push is in progress, as it’s including the OceanPlugin stuff, should be up in 30 mins or so I guess.

---

<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 19, 2016, 12:04pm UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/29 "2016-06-19T12:04:45Z")

</div>

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/3/f/53ff69343d46a5fe6e5978225d643fe9f0bd9ef9.jpeg "WIP Procedural Generation 2016-06-19") ](https://www.youtube.com/watch?v=jCZTXXD5X8Y)

New vid, just pushed a little fix for visibility problem I came across.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f125a5ee1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f125a5ee1](https://forums.unrealengine.com/u/anonymous_user_f125a5ee1)\
**Post date:** [June 21, 2016, 10:24pm UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/30 "2016-06-21T22:24:05Z")

</div>

For fun I tried to move build to the BP construction event. Heads up it crashes the editor ha.

Is there an area where we could adjust the noise to make larger “continents”? Even though the set up is pretty sweet right now.

---

<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 22, 2016, 6:47am UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/31 "2016-06-22T06:47:27Z")

</div>

> [@CazOki;552288](#):
>
> For fun I tried to move build to the BP construction event. Heads up it crashes the editor ha.
> 
> Is there an area where we could adjust the noise to make larger “continents”? Even though the set up is pretty sweet right now.

Heh, it’s totally setup for runtime generation at the moment, although I don’t imagine it would be a big job to make a version that you could build terrains in the editor with.

To make larger worlds I’ll really need to implement the blending methods in, so you create a ‘land’ noise generator, and use a simple low frequency perlin generator to mask it off against a below sea-level height. That is on the todo list 🙂

There is a bit of a bug with LOD visibility at the moment btw, will fix it shortly.

---

<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 22, 2016, 7:22am UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/32 "2016-06-22T07:22:43Z")

</div>

You can of course, make larger islands by just messing with the parameters.

 ![5929862a01b94edabd78c371f2778e21.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/7/e/67ec690655a391179eb95c0b8c2a998958f7cde2.png)

Here’s what this looks like :

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/3/c/d3c0c64a36085d024378c91b69c1ef34a2e05faa.jpeg "WIP Procedural Generation 2016-06-22") ](https://www.youtube.com/watch?v=EhOEKd7ItK8)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f125a5ee1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f125a5ee1](https://forums.unrealengine.com/u/anonymous_user_f125a5ee1)\
**Post date:** [June 22, 2016, 2:46pm UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/33 "2016-06-22T14:46:36Z")

</div>

> [@](#):
>
> Heh, it’s totally setup for runtime generation at the moment, although I don’t imagine it would be a big job to make a version that you could build terrains in the editor with.
> 
> To make larger worlds I’ll really need to implement the blending methods in, so you create a ‘land’ noise generator, and use a simple low frequency perlin generator to mask it off against a below sea-level height. That is on the todo list
> 
> There is a bit of a bug with LOD visibility at the moment btw, will fix it shortly.

I figured that was the case but I wanted to try it out! I see you made yourself a Landscape mat! I will have to take a look once I get home about adjusting the parameters. I like the Idea/look of larger islands and the idea of building it in the editor for some of us who are terrible with landscapes…

---

<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 22, 2016, 2:52pm UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/34 "2016-06-22T14:52:02Z")

</div>

Yeah I’m working on a material, trying to just use the sample content textures. Not really done much material work before so I’m mainly just copy/pasting snippets…it’s already a giant spaghetti mess and I’ve only done the base color!

Demoing the plugin at our user group next week and I’m running out of time so think I’m just going to dump the foliage spawning back in (you’ll see a bunch of structs in the code from this), and get the material looking a little nicer.

Then numero uno task is getting world origin rebasing working…so it can stop being a (kinda) infinite procedural world generator, and just be an actual infinite world generator 🙂

---

<div class="post-metadata">

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

</div>

Landscape materials are the craziest things. Have you looked at the one from the Kite demo?

---

<div class="post-metadata">

**Author:** ![Mr\_SquarePeg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mr\_SquarePeg](https://forums.unrealengine.com/u/Mr_SquarePeg)\
**Post date:** [June 22, 2016, 10:56pm UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/36 "2016-06-22T22:56:23Z")

</div>

Hey @mid_gen

I have a few questions about this awesome resource.

1. Is there anyway to sync the World Generation settings used by the WorldManager BP class to persist over a network? What I am asking is - Is there anyway this can work in a multiplayer setting?
2. Is there any ETA on the foliage generation coming back into the plugin?
3. Is there anyway to save the generated map(s) out to disk?

Thanks for your time,

HeadClot

---

<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 23, 2016, 8:17am UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/37 "2016-06-23T08:17:28Z")

</div>

> [@HeadClot;552958](#):
>
> 1. Is there anyway to sync the World Generation settings used by the WorldManager BP class to persist over a network? What I am asking is - Is there anyway this can work in a multiplayer setting?
> 2. Is there any ETA on the foliage generation coming back into the plugin?
> 3. Is there anyway to save the generated map(s) out to disk?

1. I’ve not looked into MP yet, I guess you could have multiple worldmanagers tracking different pawns and do some clever stuff when they are overlapping, but that’s a way down the line for now.

2. I’m dropping this back in at the moment, but it’s kinda rough and is just enough for the demo I’m doing next week. I’m putting a BiomeWeightMap into the zone data, which has BiomeType/weight pairs that will be used for blending multiple noise configurations and foliage sets. I’ll hopefully get this released next week.

3. I know @koderz has talked about adding an FBX export to the RuntimeMeshComponent, if/he does get round to it, then yes, but I don’t have the capacity to work on it myself right now.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f125a5ee1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f125a5ee1](https://forums.unrealengine.com/u/anonymous_user_f125a5ee1)\
**Post date:** [June 24, 2016, 5:26pm UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/38 "2016-06-24T17:26:45Z")

</div>

> [@mid\_gen;553127](#):
>
> 1. I’ve not looked into MP yet, I guess you could have multiple worldmanagers tracking different pawns and do some clever stuff when they are overlapping, but that’s a way down the line for now.
> 
> 2. I’m dropping this back in at the moment, but it’s kinda rough and is just enough for the demo I’m doing next week. I’m putting a BiomeWeightMap into the zone data, which has BiomeType/weight pairs that will be used for blending multiple noise configurations and foliage sets. I’ll hopefully get this released next week.
> 
> 3. I know @koderz has talked about adding an FBX export to the RuntimeMeshComponent, if/he does get round to it, then yes, but I don’t have the capacity to work on it myself right now.

I saw your video that had some of the Biome settings in it. I am so excited!

---

<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 26, 2016, 1:40pm UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/39 "2016-06-26T13:40:44Z")

</div>

> [@CazOki;554017](#):
>
> I saw your video that had some of the Biome settings in it. I am so excited!

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/c/b/fcbf5cc8ac3e4e66b2d111275d07900ca66f7864.jpeg "WIP Procedural Generation 2016-06-26") ](https://www.youtube.com/watch?v=iUHHeOYnRMc)

Just hacked it back in…biome map is in, but it’s just flat at the moment, need to have a look at how best to define it. Not up on github yet as it’s a bit quick and dirty to get it ready for a demo.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f125a5ee1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f125a5ee1](https://forums.unrealengine.com/u/anonymous_user_f125a5ee1)\
**Post date:** [June 27, 2016, 8:39pm UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/40 "2016-06-27T20:39:35Z")

</div>

> [@mid\_gen;554795](#):
>
> [https://youtube.com/watch?v=iUHHeOYnRMc](https://youtube.com/watch?v=iUHHeOYnRMc)
> 
> Just hacked it back in…biome map is in, but it’s just flat at the moment, need to have a look at how best to define it. Not up on github yet as it’s a bit quick and dirty to get it ready for a demo.

Oh man, that’s some good stuff.

---

<div class="post-metadata">

**Author:** ![Raptor\_X\_23](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Raptor\_X\_23](https://forums.unrealengine.com/u/Raptor_X_23)\
**Post date:** [July 2, 2016, 8:26pm UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/41 "2016-07-02T20:26:28Z")

</div>

Mutilplayer and combining with a pre-made landscape

First off, wow awesome work. This is way beyond anything that I could do. I’ll have to subscribe or follow, whichever.

I had a few questions about integration with other editor features.

1. Will this work with the existing Landscape tools already in the editor once you have completed the project. I’m interested in making a game world where the player start area will be a pre-generated map that is the same no matter what server you play on. This will be a large extinct caldera, containing some large forests, a town village, abandoned castle, etc. Once you get outside the caldera however, I would like to have the world randomly generate from there. This will continue until the world size reaches a data size limit, and then the world will try to loop so that you get a simile of a planet where you can walk all the way around.  
So could you feasible have the pre-generated caldera and then stitch it into the random map?

2. Are you planning on extending the biome generation function any farther than trees and plants, or is that as far as it will go? I could see this as a open world game generator package, where a designer could input a bunch of parameters, add some characters, NPCs, and quests, and have themselves a simple game in a massive world.

3. Will the world support terrain _editing_ at runtime, such that you can dig holes like in Minecraft? ( I know, I used the M word. It’s really the only game I know of where you can do that.)

4. Is the water swim-able, or could it be implemented, such that the program generates a physics volume underneath the water as well as a post process volume to simulate water ?

5. How big can this world conceivably be, and can it be saved, so that a player could explore a large map and then return to a previous area and have it the same as the last time he was there?

I know it’s a lot of work, I just wanted to know if you have any plans for implementing this kind of stuff or not.

Thanks and keep up the great work.

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

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