Zylann / godot_heightmap_plugin

HeightMap terrain for Godot implemented in GDScript
Other
1.71k stars 159 forks source link

Is It Possible To Make Procedurally Generated Terrain? #175

Open PersonHumanDevelops opened 4 years ago

PersonHumanDevelops commented 4 years ago

I was looking for a way to add terrain to Godot and I found this. It has all the tools I would need but I'm just wondering if its possible to do procedurally generated terrain and if its possible how could I go about it? Thank you!

Zylann commented 4 years ago

It was asked already: https://github.com/Zylann/godot_heightmap_plugin/issues/76 The plugin has a built-in generator for editor authoring (not usable in-game tho): https://github.com/Zylann/godot_heightmap_plugin/blob/master/addons/zylann.hterrain/doc/main.md#terrain-generator And has script example already: https://github.com/Zylann/godot_heightmap_plugin/blob/master/addons/zylann.hterrain/doc/main.md#scripting

douglasselph commented 1 year ago

I am new to Godot. I just want to try your documentation example shown under "Procedural generation" to see how it looks. I created a Node and added the code you display as its script. But when I go to 3D mode, nothing shows. Is there something else I need to do? I am completely lost as to what could be wrong. Thanks!

Zylann commented 1 year ago

The code shown runs when the game runs. It will not show up by only pressing the 3D tab, you have to have a camera in your scene to see the terrain and run the game.