TerrainForge — Your Blender Terrain as a Real Unity Terrain: Heights, Holes and Layers in the Same Place, Measured in Millimetres

Skava in Import & Export


Your Blender terrain as a real Unity Terrain, measured in millimetres

You built the landscape in Blender: a displaced grid, a sculpt, Geometry Nodes. In Unity you want a real Terrain, with its LODs, holes, painted layers, trees and grass. The usual way is to bake a height image with a camera and import it as RAW, and the terrain comes in wrong: Unity keeps heights at the corners of its cells, a camera samples the middles of its pixels, and the whole terrain moves half a cell. On our test terrain that left cliffs up to half a metre off (95 mm on average at 513 x 513), and then come the byte order, the flip, the height range and the place.

TerrainForge writes your Blender terrain into Unity Terrains exactly where Unity puts the rest of your Blender scene, and proves it point by point. Heights are taken from your mesh's own triangles at the very points Unity stores, holes are cut where the mesh has none, each material becomes a terrain layer with its texture lying where Blender's UVs put it, and Check measures Unity's terrain against Blender's surface in millimetres.

What comes along

  • Heights, from the mesh as the viewport shows it (modifiers and Geometry Nodes included), in world space: moved, turned, scaled, or made of several objects.
  • Resolution by budget: tell it how many millimetres you allow, and Scan picks the smallest Unity heightmap that keeps every proof point within it, or says which part does not fit and why.
  • Long terrains as tiles of one size, close to square, joined as neighbours; each tile carries its own layer offsets, so textures run on across the seams.
  • Holes where no face lies under the terrain (a gap, a cave mouth, the corners of a turned terrain).
  • Layers: one TerrainLayer per material on the top surface, with the image that colours its Base Color (followed through Mix and colour nodes) and its normal map; the texture's size and offset come from the UV map the material draws with and a Mapping node on it. Blends of two images and tints are named, not carried.
  • Scenes in centimetres or any unit scale.

Measured, not promised

  • Check compares, in your open scene: every height of every tile with the one Blender exported (to Unity's own step), each tile's place and size with where your Blender models arrive, Unity's surface with Blender's own at about 5000 proof points (random points and the mesh's sharpest vertices: peaks, ridges, cliff edges), the holes, the layer at each point, and each texture's placement against the UVs TerrainForge read; it fails when too few points lie on solid ground to judge. The report goes to the Console and next to the passport.
  • On our test terrain (256 m, hills, a ridge and an 80° cliff), at 513 x 513: worst point 1.18 mm, which is half of Unity's own height step for that terrain (Unity keeps a height as one of 32766 steps of its range). The same terrain baked the usual way: 95 mm on average, 532 mm at worst.
  • Scan's estimate is Unity's result: it models Unity's two triangles per cell and its height steps, and matched Check to within 0.003 mm on every test terrain a heightmap can hold (1.179 against 1.181 mm; 211.343 against 211.342 mm at 257 x 257; 25.374 against 25.377 mm on a turned terrain). Where it cannot, both say so: on a 54 m step under the terrain's edge they read 54.631 and 54.635 m.
  • Textures: rendered by Unity from above, 603 of 604 checker squares at the proof points match Blender's; moved by half a square, 301 of 604 do not.
  • Check is tested by breaking things on purpose: a tile raised 1 mm, slid 5 cm, one height raised by two steps, the heights shifted half a cell or mirrored, the size changed by 0.1%, one hole cell flipped, the holes filled, the layers swapped, a texture moved 1 cm or scaled 1%, a tile switched off or deleted: each one fails Check.
  • Tested on macOS and Windows, from Blender 4.2 and 5.2 in Unity 6 (6000.0, 6000.4 and 6000.6) with the Built-in, URP and HDRP pipelines.

Limits

  • A heightmap holds one height per point: overhangs, caves, arches and the underside of a thick terrain are named by Scan; model them as separate meshes.
  • Vertical walls and sharp creases cannot be held exactly by any grid: Scan says how far the closest grid lies (13 mm on our Voronoi cliffs at 4097 x 4097), so you can raise the budget or the resolution knowingly.
  • Unity cuts holes by whole cells: a hole's edge follows the grid, and a gap narrower than a cell is not cut.
  • One material per face becomes one layer; blends between textures inside a material and shader effects stay in Blender. A terrain layer tiles a texture straight along the ground: one flat projection from above is carried, also when each face is unwrapped onto 0..1 of it; UVs in pieces that do not line up, turned UVs, images placed by Generated or Object coordinates, and image files Unity does not import (WebP, movies, UDIM) are named by Scan and fail Check.
  • Set Up again after a new export replaces the layer painting you did in Unity with Blender's materials (trees and details stay).
  • Up to 4097 x 4097 heights in total. Trees, grass and scattered objects are not part of the terrain.

The Unity script is MIT licensed: ship it in your games, closed source or not.

Blender 4.2 to 5.2. Unity 6. No Python packages, no cloud, no account, no AI model.


$19.99

Have questions about this product?
Login to message

Details
Published about 3 hours ago
Blender Version 4.2 - 5.2
Extension Type N/A
License GPL