Godot 4
Terrain for Godot 4: a mesh or a 16-bit heightmap
Godot has no built-in heightmap terrain, so you either import a mesh or use an addon such as Terrain3D. Here is how to get a Spirelight terrain into Godot both ways, and why a 16-bit PNG is the wrong file for Terrain3D.
Free, no account, nothing uploaded. Needs a WebGPU browser: Chrome, Edge, or Safari 26+.
Two routes
Mesh or Terrain3D?
Pick by how big the world is and whether you want to edit it in Godot.
| glTF mesh | Terrain3D heightmap | |
|---|---|---|
| Best for | A level or island, a backdrop, a prototype | Large, editable terrain with LOD |
| Collisions | Add a trimesh static body | Handled by the addon |
| Texturing | Your own shader using the UVs and splat masks | Terrain3D's texture painting |
| File | .glb, in metres, Y up, with UVs and normals | .r16 16-bit RAW (or EXR) |
| Spirelight free? | Yes, up to 512 × 512 vertices | The ready-made .r16 is in the Pro Godot pack |
Route 1
A glTF mesh in five steps
- Make the terrain. Generate and sculpt in the Terrain Editor. Set the terrain's width, depth and height in metres first: the mesh is exported at that size.
- Export the mesh. Choose File › Export for game engine, pick GLB (glTF 2.0 binary) and a vertex grid. Up to 512 × 512 is free; 1024 × 1024 is Pro.
- Import it. Copy
terrain.glbinto your project. Godot imports it as a scene; drag it into your level. - Add collisions. Select the MeshInstance3D and use Mesh › Create Trimesh Static Body.
- Texture it. Use the normal map (OpenGL, which is Godot's convention) and, with Pro, the splat map in a shader. The UVs run across the whole terrain, so one tiling texture and one mask line up.
A 512 × 512 grid is about 260,000 vertices. That is fine for a level or an island, but for large worlds use a heightmap-based terrain with level of detail instead.
Route 2
A heightmap for Terrain3D
Terrain3D is a free Godot addon for large, editable terrain. It imports .r16 (headerless 16-bit RAW) or EXR files. It does not read 16-bit PNGs properly, because Godot's image loader turns them into 8-bit and your slopes would show 256 steps. That is why Spirelight's Godot pack writes heightmap.r16.
- Install Terrain3D from the Asset Library and add a Terrain3D node.
- Open its importer, set the height file to
heightmap.r16, and set the file size to the pack's resolution. - Set the height range from 0 to the terrain's height in metres, and Vertex Spacing to the metres per pixel from
scale.json. The pack's README prints both. - Load the OpenGL normal map into your terrain material and paint textures guided by the four masks (grass, rock, snow, sand).
Field names follow Terrain3D 1.x and may change between versions, so check the addon's import documentation. Without Pro, you can still export the 16-bit PNG from Spirelight and convert it to R16 with a tool you trust, or use the mesh route above.
Notes
Scale, licence and when to use something else
Everything is in metres with Y up, matching Godot 3D units, so a 1000 m terrain is 1000 units wide. If your game uses a different scale, change the node's scale rather than re-exporting.
Free exports are for personal use. A commercial game needs Pro's commercial-use licence ($6/month, $48/year or $99 once); see the licence terms. Spirelight makes single terrains and doesn't do tiled worlds, flow-based erosion or vegetation. For those, Gaea or World Creator can output R16 or EXR for Terrain3D as well.
For a quick sense of how the terrain will look under a real sky before you commit, light it in the editor first. The engine export guide covers Unity and Unreal in the same format, and the skybox guide covers the matching sky for Godot's PanoramaSkyMaterial.
Questions
Godot terrain questions
Does Godot 4 have a built-in heightmap terrain?
No. Godot has no built-in heightmap terrain node. Common options are importing a mesh, or the free Terrain3D addon, which imports R16 or EXR heightmaps.
Why not use a 16-bit PNG in Godot?
Godot loads 16-bit PNGs as 8-bit images, which reduces 65,536 height levels to 256 and shows steps on slopes. Terrain3D reads R16 or EXR instead.
Can I use the free export with Godot?
Yes. The glTF (.glb) mesh up to 512 × 512 vertices, the OpenGL normal map and the 16-bit PNG are free. The ready-made Terrain3D .r16 and splat masks are in the Pro Godot pack.
What normal map does Godot use?
OpenGL (green = Y+). Spirelight's Godot pack and the OpenGL option in the export dialog match this.
Is the mesh in metres?
Yes. The terrain's width, depth and height in the scene are its size in metres, and Y is up.
Keep reading
Prototype your level's ground today.
Open the editor, double-click the mountains, then File › Export for game engine.