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

<div class="post-metadata">

**Author:** ![Emrehan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/emrehan/32/1194629_2.png) [@Emrehan](https://forums.unrealengine.com/u/Emrehan)\
**Post date:** [February 4, 2017, 10:32am UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/144 "2017-02-04T10:32:07Z")

</div>

How is it possible to add dungeons to certain points of the map with this system? Is it something to be done with a little cursory or a good coding knowledge?

Great job, thank you for sharing.

---

<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:** [February 6, 2017, 10:19am UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/145 "2017-02-06T10:19:11Z")

</div>

You would have to look at doing some customisation, I’m not entirely sure what the best way to do it would be.

I would probably look at leaving a ‘hole’ in the terrain mesh by missing out a couple of triangles, and then placing your dungeon entrance over that hole, taking care to align the edges with the terrain vertices around it.

---

<div class="post-metadata">

**Author:** ![Jfrizz98](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jfrizz98](https://forums.unrealengine.com/u/Jfrizz98)\
**Post date:** [February 28, 2017, 3:11am UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/146 "2017-02-28T03:11:01Z")

</div>

This doesn’t say that it’s compatible with macs. Is there a way to make it so?

---

<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:** [February 28, 2017, 9:17am UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/147 "2017-02-28T09:17:45Z")

</div>

> [@Jfrizz98;673250](#):
>
> This doesn’t say that it’s compatible with macs. Is there a way to make it so?

I don’t have a Mac to be able to test, but I don’t see any reason why it shouldn’t. I believe someone earlier in the thread has used it on Mac.

---

<div class="post-metadata">

**Author:** ![JustinKringstad](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/justinkringstad/32/918632_2.png) [@JustinKringstad](https://forums.unrealengine.com/u/JustinKringstad)\
**Post date:** [March 5, 2017, 8:12pm UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/148 "2017-03-05T20:12:08Z")

</div>

is this updated for 4.15?

---

<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:** [March 6, 2017, 7:47am UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/149 "2017-03-06T07:47:58Z")

</div>

> [@The\_Mec\_666;676312](#):
>
> is this updated for 4.15?

Not yet, I usually wait for 4.X.1. Started downloading 4.15.0 though, I’ll have to see if the runtime mesh component is working with it yet.

I expect there’ll need to be a fair bit of tinkering to get it sorted with the header changes in 4.15.

---

<div class="post-metadata">

**Author:** ![ZhenyaChistovsky](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zhenyachistovsky/32/1194649_2.png) [@ZhenyaChistovsky](https://forums.unrealengine.com/u/ZhenyaChistovsky)\
**Post date:** [March 6, 2017, 8:27am UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/150 "2017-03-06T08:27:45Z")

</div>

> [@mid\_gen;589226](#):
>
> [https://youtube.com/watch?v=KyDR3Nim4cQ](https://youtube.com/watch?v=KyDR3Nim4cQ)

Beautiful grass

---

<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:** [March 6, 2017, 9:05am UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/151 "2017-03-06T09:05:21Z")

</div>

> [@Artur Dark;676537](#):
>
> Beautiful grass

Credit for that belongs to @Aaronwith2As 🙂

> **[\[FREE\] Advanced Cinematic Grass Blueprint with 3D Imposter Sprite foliage](https://forums.unrealengine.com/showthread.php?97253-FREE-Advanced-Cinematic-Grass-Blueprint-with-3D-Imposter-Sprite-foliage)**
>
> What’s Up Guys, This was one of my first projects in Unreal Engine and I’m giving it away as a way of saying thank you! I’ve got a lot of great free content and helpful posts off everyone here so I thought it was time to give back to the community a...

---

<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:** [March 6, 2017, 11:58am UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/152 "2017-03-06T11:58:12Z")

</div>

> [@The\_Mec\_666;676312](#):
>
> is this updated for 4.15?

is updated to 4.15. 4.14 version is on a new branch.

You’ll need to get the 4.15 version of the RuntimeMeshComponent :

> **[GitHub - TriAxis-Games/RealtimeMeshComponent: Unreal Engine 4 plugin...](https://github.com/TriAxis-Games/RealtimeMeshComponent)**
>
> Unreal Engine 4 plugin component for rendering runtime generated content. - GitHub - TriAxis-Games/RealtimeMeshComponent: Unreal Engine 4 plugin component for rendering runtime generated content.

Only a couple of little changes to get it working. First glance performance seems _much_ better, I suspect that is down to improvements from RMC (thanks @Koderz)

---

<div class="post-metadata">

**Author:** ![JustinKringstad](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/justinkringstad/32/918632_2.png) [@JustinKringstad](https://forums.unrealengine.com/u/JustinKringstad)\
**Post date:** [March 6, 2017, 1:32pm UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/153 "2017-03-06T13:32:15Z")

</div>

> [@mid\_gen;676617](#):
>
> is updated to 4.15. 4.14 version is on a new branch.
> 
> You’ll need to get the 4.15 version of the RuntimeMeshComponent :
> 
> [GitHub - TriAxis-Games/RealtimeMeshComponent: Unreal Engine 4 plugin component for rendering runtime generated content.](https://github.com/Koderz/UE4RuntimeMeshComponent)
> 
> Only a couple of little changes to get it working. First glance performance seems _much_ better, I suspect that is down to improvements from RMC (thanks @Koderz)

sounds good, i’m definitely going to use this. you got a nice product here. thank you

---

<div class="post-metadata">

**Author:** ![JustinKringstad](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/justinkringstad/32/918632_2.png) [@JustinKringstad](https://forums.unrealengine.com/u/JustinKringstad)\
**Post date:** [March 6, 2017, 1:42pm UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/154 "2017-03-06T13:42:10Z")

</div>

weird when I put in the RMC plugin, when I try to run the Editor it says cannot be found. and gives a bunch of paper2d errors

---

<div class="post-metadata">

**Author:** ![Interitus384](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Interitus384](https://forums.unrealengine.com/u/Interitus384)\
**Post date:** [March 6, 2017, 7:12pm UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/155 "2017-03-06T19:12:52Z")

</div>

Wow, this is a fantastic plugin! I’ve only played with it for a bit in the editor, because as of right now I dont know C code, which I’m going to have to learn… The only things I saw exposed to BP was the set up terrain and spawn tile.

- Is there a way to know when its done spawning the terrain in the player spawn area? so that I could then place the character on the ground?
- is it possible to specify the starting area, and have it blend into the nearby generated areas?

Also, I loaded up the splinedemo map, and it crashed when I tried to run it. I dont have the debugging symbols atm, so I’m going to have to install them, and I’ll get back to you. I have added the FPS starter template, so I dont know if that is causing issues.  
Ok, installed symbols, doesnt look helpful at all.

> [@](#):
>
> Access violation - code c0000005 (first/second not available)
> 
> UE4Editor\_CashGen!FCGTerrainGeneratorWorker::ProcessTerrainMap() [f:\ue4\cashgenue-\plugins\cashgen\source\cashgen\private\cgterraingeneratorworker.cpp:139]  
> UE4Editor\_CashGen!FCGTerrainGeneratorWorker::Run() [f:\ue4\cashgenue-\plugins\cashgen\source\cashgen\private\cgterraingeneratorworker.cpp:53]  
> UE4Editor\_Core!FRunnableThreadWin::Run() [d:\build++ue4+release-4.15+compile\sync\engine\source\runtime\core\private\windows\windowsrunnablethread.cpp:76]

---

<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:** [March 6, 2017, 9:06pm UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/156 "2017-03-06T21:06:04Z")

</div>

Ah I didn’t check the splinedemo, probably needs a little tweak.

I can add a delegate to notify on initial completion sure, will look into it tomorrow.

---

<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:** [March 19, 2017, 12:36pm UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/157 "2017-03-19T12:36:22Z")

</div>

Watched Sean Murray’s GDC talk the other day (must watch for anyone interested in procgen terrain).

> **[Building Worlds Using Math(s)](https://www.gdcvault.com/play/1024514/Building-Worlds-Using)**
>
> 'No Man's Sky' is a science fiction game set in a near infinite procedurally generated universe. This lecture will describe some of the most important technologies and interesting challenges behind generating both realistic and alien terrains...

Starting to work some of the techniques in. Just the two iterations of domain warping in this example on basic fbm noise.

[http://image.prntscr.com/image/4a1bbad030bb429e81761e23dac9e895.png](http://image.prntscr.com/image/4a1bbad030bb429e81761e23dac9e895.png)

Starting to work on the derivatives now. Not really suitable for real-time generation on the CPU (mega slow) but interesting nonetheless 🙂

---

<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:** [March 19, 2017, 2:45pm UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/158 "2017-03-19T14:45:58Z")

</div>

Bit of domain warping in action on the demo scene. Certainly makes it more interesting :\>

Will push the update to the noise plugin shortly.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/3/0/630f8deafc7dd637fdb4d8dce16e8153f91e40ea.jpeg "CashGen - Procedural Realtime Terrain Generation Plugin for UE4 - Update 2017-03-19") ](https://www.youtube.com/watch?v=PeiXMsWD5k4)

---

<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:** [March 21, 2017, 9:11am UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/159 "2017-03-21T09:11:28Z")

</div>

New demo

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/3/5/d35f9970fcee12a4deee5fead7503c866308f80c.jpeg "CashGen - Procedural Realtime Terrain Generation Plugin for UE4 - Update 2017-03-21") ](https://www.youtube.com/watch?v=9RP4Xg_KuKM)

---

<div class="post-metadata">

**Author:** ![Derjyn](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/derjyn/32/931618_2.png) [@Derjyn](https://forums.unrealengine.com/u/Derjyn)\
**Post date:** [March 21, 2017, 4:07pm UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/160 "2017-03-21T16:07:23Z")

</div>

I _knew_ you had to have seen Sean’s GDC talk! I finished that and promptly came here to mention it. Awesome to see you working in some of that magic. I imagine you had several lightbulbs go off with the whole uber noise thing?

I did, and while I had known about feeding varying levels of noise into distortion and so on, realized I never really did it in any terrain generation programs. So I fired up World Machine and chained several Perlin noise generators into each other. What a difference it makes, and generation is fast. It was producing nicer results than some really power hungry macros, many times faster. Sort of made me feel like a dork :rolleyes:

Really looking forward to the future of CashGen now. Keep up the awesome work!

[edit]  
Just checked out the latest version, and yeah… terrains are definitely more interesting.  
[/edit]

---

<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:** [March 21, 2017, 7:24pm UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/161 "2017-03-21T19:24:01Z")

</div>

> [@Derjyn;683785](#):
>
> I _knew_ you had to have seen Sean’s GDC talk! I finished that and promptly came here to mention it. Awesome to see you working in some of that magic. I imagine you had several lightbulbs go off with the whole uber noise thing?
> 
> I did, and while I had known about feeding varying levels of noise into distortion and so on, realized I never really did it in any terrain generation programs. So I fired up World Machine and chained several Perlin noise generators into each other. What a difference it makes, and generation is fast. It was producing nicer results than some really power hungry macros, many times faster. Sort of made me feel like a dork :rolleyes:
> 
> Really looking forward to the future of CashGen now. Keep up the awesome work!
> 
> [edit]  
> Just checked out the latest version, and yeah… terrains are definitely more interesting.  
> [/edit]

The projects are a bit of a mess at the moment as I’ve just been tinkering with things and pushing commits as I move between laptop and desktop. Plenty of stuff to look at though.

There is actually domain warping in the original fastnoise code but because of the implementation of the wrapper it wasn’t really usable. There’s now a new WarpModule you can use which you’ll have seen in some of the demos.

Going to focus on noise generation for a bit. Once that’s tidied up I may finally embark on a voxel version.

---

<div class="post-metadata">

**Author:** ![Askori](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Askori](https://forums.unrealengine.com/u/Askori)\
**Post date:** [March 31, 2017, 12:32am UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/162 "2017-03-31T00:32:08Z")

</div>

Hey mid\_gen, Any you have a road map of what you’re planning to work on in CashGen? Looks great so far!

---

<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:** [April 19, 2017, 7:42am UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/163 "2017-04-19T07:42:48Z")

</div>

I’ve pared the github repo back to just the plugin folder now, so the demo project is gone. You can now just checkout the repo into your project’s plugin folder.

I wanted to remove the OceanPlugin dependencies because it’s not updated particularly often.

I’m looking at putting a sample terrain and material inside the plugin’s content folder, just need to check that works alright.

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

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