# Is procedural terrain generation possibile in Unreal Engine?

**URL:** <https://forums.unrealengine.com/t/is-procedural-terrain-generation-possibile-in-unreal-engine/529296>\
**Category:** C++\
**Tags:** unreal-engine, UE4-27, question\
**Created:** [April 15, 2022, 9:27am UTC](https://forums.unrealengine.com/t/is-procedural-terrain-generation-possibile-in-unreal-engine/529296 "2022-04-15T09:27:33Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kev\_Iron](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kev\_Iron](https://forums.unrealengine.com/u/Kev_Iron)\
**Post date:** [April 15, 2022, 9:27am UTC](https://forums.unrealengine.com/t/is-procedural-terrain-generation-possibile-in-unreal-engine/529296/1 "2022-04-15T09:27:33Z")

</div>

Hello!  
I’m trying to create a game witch procedurally generated terrain. But I don’t know is this possibile at all.

If procedural generation is possibile in Unreal, can someone tell me how to do this or send me a link to docks or other inforamation source?

For all help, thanks, and sorry for bad engilsch.

---

<div class="post-metadata">

**Author:** ![CrispClover](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/crispclover/32/1140157_2.png) [@CrispClover](https://forums.unrealengine.com/u/CrispClover)\
**Post date:** [April 15, 2022, 9:40am UTC](https://forums.unrealengine.com/t/is-procedural-terrain-generation-possibile-in-unreal-engine/529296/2 "2022-04-15T09:40:36Z")

</div>

It is possible. What kind of procedural generation are you looking for? [Voxel Plugin](https://voxelplugin.com/) generates terrain at runtime and has a free version you can use. If you want to use landscapes instead, runtime generation can get a bit more tricky.

---

<div class="post-metadata">

**Author:** ![Jason\_Hoku](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jason_hoku/32/268033_2.png) [@Jason\_Hoku](https://forums.unrealengine.com/u/Jason_Hoku)\
**Post date:** [April 15, 2022, 9:58am UTC](https://forums.unrealengine.com/t/is-procedural-terrain-generation-possibile-in-unreal-engine/529296/3 "2022-04-15T09:58:29Z")

</div>

It’s very possible but if you want it done smoothly it will require c++ and lot of custom code specifically designed around managing large data processing and feeding it to the main game frame thread.

Blueprints are notoriously slower than c++ and you probably want to create a single mesh as often as possible that can be saved and be manipulated through your in game events.

There are some videos on how to do it cheaply with blueprints and some ue tools too but if you want full control and the best quality you want to use a C++ multithreaded custom solution per your projects specific needs.

---

<div class="post-metadata">

**Author:** ![Kev\_Iron](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kev\_Iron](https://forums.unrealengine.com/u/Kev_Iron)\
**Post date:** [April 15, 2022, 10:16am UTC](https://forums.unrealengine.com/t/is-procedural-terrain-generation-possibile-in-unreal-engine/529296/4 "2022-04-15T10:16:28Z")

</div>

Thanks you so much.  
I’m going to do this by myself. Your ansewer is very good, but i have some other questions:

Firstly, i don’t know what type of unreal c++ class should I use to make this terrain generator. (Actor, or something like that)

Second questions is:  
Is doeing this require modifying the Unreal source code, and super hightly advanced c++ skills? (I know seriously much things about UE C++ , but i’m not at space level od this skills.)

For all answers thanks.

---

<div class="post-metadata">

**Author:** ![Jason\_Hoku](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jason_hoku/32/268033_2.png) [@Jason\_Hoku](https://forums.unrealengine.com/u/Jason_Hoku)\
**Post date:** [April 15, 2022, 10:24am UTC](https://forums.unrealengine.com/t/is-procedural-terrain-generation-possibile-in-unreal-engine/529296/5 "2022-04-15T10:24:58Z")

</div>

You could go about doing it a number of ways but it is a big task with a number or large tasks in it still and knowledge on creating optimized large-data handling, multithreaded software in c++ and even still there if you want more advanced features basically you want your own “Nanite” algorithm for your mesh and normals and textures and physics and all appropriately set up for network replication if you want multiplayer.

---

<div class="post-metadata">

**Author:** ![Kev\_Iron](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kev\_Iron](https://forums.unrealengine.com/u/Kev_Iron)\
**Post date:** [April 15, 2022, 10:40am UTC](https://forums.unrealengine.com/t/is-procedural-terrain-generation-possibile-in-unreal-engine/529296/6 "2022-04-15T10:40:15Z")

</div>

After all of this posts, i can think: this is possibile at all, but i’m not sure is It possibile to me, at my level of skills.

I don’t have needed knowledge and inforamation to start this project, but i should do some more research about that. If you have some other inforamation, i will be very happy.

Althought of all, thank you.

---

<div class="post-metadata">

**Author:** ![AlchemicalWorks](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/alchemicalworks/32/471554_2.png) [@AlchemicalWorks](https://forums.unrealengine.com/u/AlchemicalWorks)\
**Post date:** [April 15, 2022, 11:07am UTC](https://forums.unrealengine.com/t/is-procedural-terrain-generation-possibile-in-unreal-engine/529296/7 "2022-04-15T11:07:49Z")

</div>

Hey Kev, I just wanted to encourage you: I am sure you you can do some procedural terrain even if this was your first project in UE. Have you thought about doing a tile-based approach? You can piece together a 3d landscape from tiles and do it all in Blueprints.

---

<div class="post-metadata">

**Author:** ![CrispClover](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/crispclover/32/1140157_2.png) [@CrispClover](https://forums.unrealengine.com/u/CrispClover)\
**Post date:** [April 15, 2022, 11:42am UTC](https://forums.unrealengine.com/t/is-procedural-terrain-generation-possibile-in-unreal-engine/529296/8 "2022-04-15T11:42:06Z")

</div>

> [@AlchemicalWorks](#):
>
> and do it all in Blueprints.

That’s only true for generation that doesn’t happen at runtime though. To make Landscapes work with runtime generated heightmaps you have to work with c++. The import functions that are accessible in the editor are editor-only. On the plus side though, using landscape means you generate the heightmaps using render targets and benefit from all the optimisations Landscapes already provide.

@Kev_Iron  
Since you’re not telling me what you want to do, let me bury you in information sources on the topic:

- [GDC talk about maths for terrain generation](https://www.youtube.com/watch?v=SePDzis8HqY)
- [Painting a Landscape with Maths](https://www.youtube.com/watch?v=BFld4EBO2RE)
- [Great articles on procedural noise for terrain generation and more](https://iquilezles.org/www/index.htm)
- [Generating Complex Procedural Terrains Using the GPU](https://developer.nvidia.com/gpugems/gpugems3/part-i-geometry/chapter-1-generating-complex-procedural-terrains-using-gpu)

---

<div class="post-metadata">

**Author:** ![Kev\_Iron](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kev\_Iron](https://forums.unrealengine.com/u/Kev_Iron)\
**Post date:** [April 15, 2022, 12:07pm UTC](https://forums.unrealengine.com/t/is-procedural-terrain-generation-possibile-in-unreal-engine/529296/9 "2022-04-15T12:07:17Z")

</div>

Sorry, for not response but  
I don’t know how i can describe It to you, but i try:

I’m trying to create a procedural terrain generation at runtime. (I need modular system that allow me to add new structures like village to a generator. I need to generate mountains, lakes, trees, oceans and grass.)

When player moves around the map, fragments (chunks) of map are saving to a file and can be loaded, when player moves to this location.

I don’t need to make this terrain destructible or allow player to modify It.

If you need some other inforamation tell me.

---

<div class="post-metadata">

**Author:** ![CrispClover](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/crispclover/32/1140157_2.png) [@CrispClover](https://forums.unrealengine.com/u/CrispClover)\
**Post date:** [April 15, 2022, 1:08pm UTC](https://forums.unrealengine.com/t/is-procedural-terrain-generation-possibile-in-unreal-engine/529296/10 "2022-04-15T13:08:04Z")

</div>

Thanks, this already helps a lot to understand what you’re going for. With what you want to do I would recommend to concentrate on the terrain generation maths, and use existing tools to generate the terrain itself. You will have to do quite a bit of research on noise. This video series should get you started: [Landmass Generation](https://www.youtube.com/playlist?list=PLFt_AvWsXl0eBW2EiBtl_sxmDtSgZBxB3)  
Initially I would recommend playing around with heightmap generation for Unreal’s Landscapes using [UE’s noise nodes for Materials](https://www.unrealengine.com/en-US/tech-blog/getting-the-most-out-of-noise-in-ue4), [Draw to Render Target](https://docs.unrealengine.com/5.0/en-US/BlueprintAPI/Rendering/DrawMaterialtoRenderTarget/) and [Blutility Widgets](https://docs.unrealengine.com/4.26/en-US/InteractiveExperiences/UMG/UserGuide/EditorUtilityWidgets/), just to get a feel for working with noise. This also gives you an opportunity to try and work with placing actors in the scene based on terrain data. Once you feel you understand that well enough to move on to runtime generation, I would recommend using the free version of Voxel Plugin and moving to C++, simply because you’ll be spending a ton of time with everything else already. Depending on whether you want infinite generation or not you’ll have different generation tricks at your disposal as well, but I’ll leave discovering all that to you, otherwise I’ll be writing a whole book here.

---

<div class="post-metadata">

**Author:** ![jCoder](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jCoder](https://forums.unrealengine.com/u/jCoder)\
**Post date:** [April 16, 2022, 12:23am UTC](https://forums.unrealengine.com/t/is-procedural-terrain-generation-possibile-in-unreal-engine/529296/11 "2022-04-16T00:23:50Z")

</div>

This weeks Unreal Engine stream is about the new Geometry Tools in UE5. The second half of the stream talked about the new Blueprint library added for manipulating geometry. The guy who talks about it is the engineer who developed it. He has his own channel as well.

> [@Inside Unreal: Exploring Geometry Tools in UE5](https://forums.unrealengine.com/t/inside-unreal-exploring-geometry-tools-in-ue5/526278):
>
> WHAT The [official release of Unreal Engine 5](https://www.unrealengine.com/en-US/blog/unreal-engine-5-is-now-available) has brought with it a ton of incredible features and tools that we’re excited to explore, so this week we kick it off with a demo and discussion of the Geometry Tools! Between UE5’s native modeling tool suite and geometry scripting, there is a ton of information to crack into. We’ve got the experts coming on to answer your questions - so tune in live for the Q&A! WHEN Thursday, April 14th @ 2:00 PM ET - [Countdown](https://www.timeanddate.com/countdown/generic?iso=20220414T14&p0=207&msg=Inside+Unreal%3A+Exploring+Geometry+Tools+in+UE5&font=slab&csz=1) WHERE [Twitch](http://www.twitch.tv/unrealengine)[Yo…](https://www.youtube.com/channel/UCBobmJyzsJ6Ll7UbfhI4iwQ)

> **[Ryan Schmidt](https://www.youtube.com/c/RyanSchmidtEpic)**
>
> Geometry Fellow at Epic Games, Shaper of Triangles

---

<div class="post-metadata">

**Author:** ![Countsie](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/countsie/32/1194632_2.png) [@Countsie](https://forums.unrealengine.com/u/Countsie)\
**Post date:** [April 16, 2022, 2:49am UTC](https://forums.unrealengine.com/t/is-procedural-terrain-generation-possibile-in-unreal-engine/529296/12 "2022-04-16T02:49:28Z")

</div>

Just starting out you can use the ProceduralMesh component to get things going and build out a simple terrain to test things out as it is pretty easy to use, but I concur with CrispClover with pretty much all they say.

If it’s something you need to get done, or don’t want to invest the time in, fork out the money for the Voxel plugin pro as it has the tools you are looking for (of course do your own research to make sure of this). I use the free plugin for terrain generation, and it works beautifully, but it took a bit to get ahold of and I’m experienced with c++ and UE4.

---

<div class="post-metadata">

**Author:** ![NinefingerLogen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NinefingerLogen](https://forums.unrealengine.com/u/NinefingerLogen)\
**Post date:** [July 29, 2022, 6:41pm UTC](https://forums.unrealengine.com/t/is-procedural-terrain-generation-possibile-in-unreal-engine/529296/13 "2022-07-29T18:41:55Z")

</div>

I need a fully automated (scripting and then whatever/C++) way to create out of polygons a grass/lawn/tree/bush landscape. That is all. Combined with some prededinfed procedures I would like to automatically create a 4kmovie/maps/screenshots - all in batch.  
Is that possible ( I assume “of course ;-)”) and are there reference projects I can jump on?  
Thanks 9flogen.
