A high performance, editable terrain system for Godot 4, written in C++.
- Written in C++ as a GDExtension plugin, which works with official engine builds
- Can be accessed by GDScript, C#, and any language Godot supports
- Geometric Clipmap Mesh Terrain, as used in The Witcher 3. See System Design
- Up to 16k x 16k in 1k regions (imagine multiple islands without paying for 16k^2 vram)
- Up to 10 Levels of Detail (LODs)
- Up to 32 texture sets using albedo, normal, roughness, height
- Sculpting, texture painting, texture detiling, painting colors and wetness, undo/redo
- Supports importing heightmaps from HTerrain, WorldMachine, Unity, Unreal and any tool that can export a heightmap (raw/r16/exr/+). See importing
See the Wiki for project status, design, and usage.
- Supports Godot 4.1+. 4.0 is possible.
- Supports Windows, Linux, and macOS. Other platforms pending.
- Download the latest release and extract the files, or build the plugin from source.
- Run Godot, using the console executable so you can see error messages.
- In the project manager, import the demo project and open it. Allow Godot to restart.
- In
Project Settings / Plugins
, ensure that Terrain3D is enabled. - Select
Project / Reload Current Project
to restart once more. - If the demo scene doesn't open automatically, open
demo/Demo.tscn
. You should see a terrain. Run the scene.
- Download the latest release and extract the files, or build the plugin from source.
- Copy
addons/terrain_3d
to your project folder asaddons/terrain_3d
. - Run Godot, using the console executable so you can see error messages. Restart when it prompts.
- In
Project Settings / Plugins
, ensure that Terrain3D is enabled. - Select
Project / Reload Current Project
to restart once more. - Create or open a 3D scene and add a new Terrain3D node.
- Select Terrain3D in the scene tree. In the inspector, click the down arrow to the right of the
storage
resource and save it as a binary.res
file. This is optional, but highly recommended. Otherwise it will save terrain data as text in the current scene file. The other resources can be left as is or saved as text.tres
. These external files can be shared with other scenes. - Read the Wiki to learn how to properly set up your textures, import data and more.
-
Most questions have already been addressed in the Wiki, especially Troubleshooting and Setting Up Textures.
-
For questions or technical issues, join the Tokisan discord server and look for the #terrain-help channel.
-
For technical issues or bug reports, search through the issues to ensure it hasn't already been reported, then create a new one. Use discord for questions.
Developed for the Godot community by:
Cory Petkovsek, Tokisan Games | |
Roope Palmroos, Outobugi Games |
And other contributors displayed on the right of the github page and in AUTHORS.md.
Geometry clipmap mesh code created by Mike J. Savage. Blog and repository code released under the MIT license per email communication with Mike.
We need your help to make Terrain3D the best terrain plugin for Godot 4. Please see CONTRIBUTING.md if you would like to help.
This plugin has been released under the MIT License.