Procedural Wolrd Generator

   8701   11   3
User Avatar
Member
38 posts
Joined: June 2019
Offline
Procedural Wolrd Generator



What does it do ?

Terrain
Layers
Roads
Place houses in villages
Place buildings in towns
Level the terrain under houses and buildings
Place Trees
Place Rocks

Hda for Unreal : TerrainV4.7.hdalc (See attachments at the bottom of this post)

Source for Houdini : LandscapeV4.7.hiplc (See attachments at the bottom of this post)

Terrain Auto-Material : https://gofile.io/?c=VterOq [gofile.io] // Copy it in /Content/HoudiniEngine using explorer ( should look like Content/HoudiniEngine/Lanscape_Material.uasset)

Texture Pack : ( allready in terrain auto-material .zip)https://gofile.io/?c=p6QokK [gofile.io]

My Discord: https://discord.gg/QkM4MF9 [discord.gg]


How to Use it ?

1 - Download Houdini [www.sidefx.com]
2 - Don't forget to check unreal on the install process [support.borndigital.co.jp]

3 - Import the hda in Unreal
4 - Drag n Drop the hda in the scene
5 - You should see the hda cooking

Parameters

Once you finished importing all the stuffs ( see quick tutorial in the next post ) you can start changing parameters.

- Try changing the offset parameter, it will offset the noise and basically you get a new terrain



Result



Once you happy with the terrain try changing the resolution to 127, 253, 505, 1009, 2017, 4033, 8129 ( currently there is a bug and the terrain is locked to 1009 )

Tips

- Disable this if you don't wan't to auto-cook each time you change a parameter, you will have to manually recook the asset ( select the terrain, right click, recook )


-
Edited by samuelbrunner - Aug. 19, 2019 07:07:46

Attachments:
postshowcase.png (1.1 MB)
disable this.jpg (22.6 KB)
try offset.jpg (427.8 KB)
offset then.jpg (427.7 KB)
LandscapeV4.7.hiplc (1.1 MB)
TerrainV4.7.hdalc (138.2 KB)

User Avatar
Member
38 posts
Joined: June 2019
Offline
Quick Start


1. Import the .hda, then drop it on the scene, the hda will cook






2. Create landscape material:

2.1 Copy in explorer the landscape material into to your project folder


2.2 Open landscape material and reassign textures ( Be sure to assign normals too ! )






3. Applying the material on the terrain :

Select your terrain
Right click on your terrain material, copy reference
Paste it on the “Your terrain path” parameter

You should see the material on the terrain






In case there is a problem with terrain layers :

- Delete your terrain
- Clean Houdini temp folder
- Drop your hda back on the scene
- reasign terrain material




4 Placing trees and buildings

- Select your terrain
- Find houdini instanced inputs ( Detail panel )
- Drag your trees model on green cubes
- Drag your building model in pink cubes
- Drag your houses on yellow cubes
- Drag medium buidlings on orange cubes
- Drag rocks on red cubes



5 Add variation

- If you wan't to make some variation with meshs, click the + button, and drop the other model

Edited by samuelbrunner - Aug. 17, 2019 09:30:51

Attachments:
landscapematerial.jpg (332.8 KB)
hda import.jpg (276.4 KB)
texture.jpg (496.3 KB)
material reference.jpg (654.6 KB)
landscape mat final.jpg (616.3 KB)
terrain black02 clean good.jpg (335.7 KB)
instanced tree.jpg (780.9 KB)
add instance.jpg (794.8 KB)
add instance 02.jpg (790.2 KB)

User Avatar
Member
1 posts
Joined: Aug. 2019
Offline
Cool… I'm going to check it all out today. Thanks, man!
User Avatar
Member
38 posts
Joined: June 2019
Offline
Update (4.3), now it place happy little villages and flat the gound under houses

- Terrain scale is now 1/1

Update (4.3)

It make a simple road mesh
Edited by samuelbrunner - Aug. 10, 2019 11:38:08

Attachments:
TerrainV4.3.hdalc (115.7 KB)
village01.png (3.0 MB)

User Avatar
Member
8 posts
Joined: Jan. 2019
Offline
I use the engine for Unity learning to do the same thing (terrain, roads, rivers, scatter) but have seen some of your work you post and it looks very good. Great job!
User Avatar
Member
38 posts
Joined: June 2019
Offline
Hi, thx, roads are very bad, if i could learn how to code this would be much better, like a good road pathinfing, better terracing for road and building, also procedural rivers could be great.

Yesterday i added towns with buildings, and made the terrain look better.

For now i removed the parametter because of a bug with them.

Attachments:
terrain004.png (2.8 MB)
TerrainV4.6.hdalc (123.1 KB)

User Avatar
Member
72 posts
Joined: Nov. 2018
Offline
Great job! I will give it a shot soon.

thanks.
User Avatar
Member
38 posts
Joined: June 2019
Offline
Yeah, you can just try it on an empty project and at least see if it spawn the terraind

Last small update, ground is flatten under houses, 2k terrain resolution
Edited by samuelbrunner - Aug. 12, 2019 18:35:36

Attachments:
uh-60 fly.png (2.7 MB)
TerrainV4.7.hdalc (124.4 KB)

User Avatar
Member
3 posts
Joined: Dec. 2016
Offline
Thanks very much for this Samuel. And thanks for including the source file. I am new to Houdini - in fact this project inspired me to look into it. I will be able to use your source to help learn Houdini.
User Avatar
Member
38 posts
Joined: June 2019
Offline
Yeah but someone with some coding skill can do much more, i just use standard nodes, and its allways a struggle to get layers do work
Edited by samuelbrunner - Sept. 2, 2019 08:07:34

Attachments:
canyon nearly finished.png (2.5 MB)
valley03.jpg (363.5 KB)
Big_valley.hiplc (1.1 MB)
Big_valley.hdalc (139.8 KB)
Canyon.hiplc (863.6 KB)
Canyon.hdalc (97.8 KB)

User Avatar
Member
1 posts
Joined: Oct. 2019
Offline
Is possible support UE4 world composition or add streaming level proxy?
User Avatar
Member
1 posts
Joined: April 2019
Offline
The link to the material seems to be down! Regardless a great learning resource this is to me, thank you sir!
  • Quick Links