LODscape – Slice Terrain Into Tiles + LODs

hugobarreira in Addons


Video tutorials

Terrain setup walkthrough

Godot 4 import

Godot 4 import (script required)

Godot doesn't read LOD switch distances from .glb files on its own. Without the import script, every LOD level shows at once, overlapping. The script is required and, for now, ships inside the add-on zip at extras/godot/lodscape_import.gd (unzip lodscape-1.0.4.zip to find it).

  1. In Blender (LODscape): Target = Godot, Format = Auto (.glb). Slice, Build LODs, then Export Tiles into a folder inside your Godot project (e.g. res://tiles/).
  2. Copy lodscape_import.gd anywhere in your Godot project (e.g. res://tools/).
  3. In Godot, select all tile .glb files in the FileSystem dock. In the Import dock set Import Script > Path to lodscape_import.gd and click Reimport.
  4. In the same dock, turn off Meshes > Generate LODs.
  5. Drag the tiles into your scene; they land in place at 1:1 scale. For collision, open Advanced... and set LOD0 to a Static body with a Trimesh shape.

The script copies LODscape's distances into each LOD's Visibility Range at import time; the last LOD never disappears. Use .glb, not FBX (FBX carries no distances).

Quick start

LODscape adds a LODscape tab to the 3D Viewport sidebar (press N). It has three panels: Slice, LODs and Export.

How LODscape works: Slice, LOD, Export

  1. Select your terrain mesh. Displace and other modifiers are fine.
  2. Slice panel: choose the grid by Count (e.g. 4 x 4 tiles) or by Size (e.g. 10 m tiles), then click Slice.
  3. LODs panel: choose the number of LODs and the Target (Blender, Unity, Unreal, Godot or UPBGE), then click Build LODs.
  4. Export panel: pick a folder and click Export. You get one file per tile: FBX, or glTF for Godot.

The tiles go into a new collection. Your original terrain is only hidden, never changed or deleted. Every step can be undone with Ctrl+Z. If a button is greyed out, hover over it and the tooltip tells you why.

Slice

  • Count / Size: set the grid by number of tiles or by tile size in metres.
  • Snap row: on regular grid meshes (subdivided planes, ANT Landscape, DEM imports), the buttons suggest tile counts that keep every original face whole. Click one to use it.
  • Allow Face Cuts: lets tile borders cut through faces when the grid doesn't divide evenly. Leave it off for clean tiles.
  • Names: A1/B2, R1_C1, X00_Y00 or world E/N coordinates.
  • Z Layers: also split tall terrains (cliffs, canyons) into height layers.
  • Advanced: Grid Origin, Tile Origin (default: the centre of each tile, so LOD switching works uphill too), name prefix, hide original, replace previous slice.
  • Works with rotated, scaled, off-centre terrains, holes and islands. UVs, materials, vertex colours and vertex groups are kept. Collision, Dynamic Paint and other physics settings are copied to every tile.
  • Limits: a warning from 1,024 tiles, and slicing is blocked above 4,096 tiles.

LODs

Works on any selected meshes, not just tiles (rocks, buildings, props).

Outliner: LODs grouped per object with engine-ready names

  • LODs: 1 to 7 extra levels.
  • Last LOD: face count of the last level compared with the original, e.g. 0.10 = 10%.
  • LOD1 Distance: where LOD1 starts, in tile sizes. Each next level doubles the distance. The distances in metres are shown next to it.
  • Lock Borders (on): tile borders stay identical at every level, so neighbouring tiles never show cracks.
  • Target: sets the names and properties each engine expects (Unity LOD Group, Unreal FBX LOD import, Godot visibility ranges, UPBGE Levels of Detail).
  • Show LOD0..n and LODs from Camera: preview the levels in Blender, or switch them by camera distance for renders.
  • Advanced: Extra Rings at the borders, and optional Skirts to hide cracks if an engine decimates tiles again (e.g. Godot auto-LOD).
  • Large builds ask for confirmation and show progress. Press Esc to cancel.

Export

  • Folder: one file per tile or LOD group. A relative folder like //tiles/ needs a saved .blend.
  • Format: Auto picks glTF (.glb) for Godot and FBX for everything else.
  • With nothing selected, it exports all tiles from the last slice.

UPBGE (experimental)

  1. Build LODs with Target = UPBGE, then open the file in UPBGE.
  2. Click Set UPBGE LODs to fill each tile's Levels of Detail. X clears them.

On UPBGE 0.50, the LOD lists are only added while the game runs (P) and removed when it ends, to avoid a known UPBGE crash. UPBGE 0.53 can still crash when a LOD tile is selected as the game starts, or when the embedded game ends. This is an engine bug, and UPBGE reports it as fixed for the next release. Until then, deselecting the tiles before pressing P may help.

Requirements

  • Blender 4.2 or newer, tested up to 5.2.
  • UPBGE 0.50 and 0.53 are supported as experimental.
  • Blender 2.79 users: the old 0.2.0 version stays available as a legacy download.

Troubleshooting

  • Slice is greyed out: hover over it to see why. Usually the tile size doesn't divide the face grid, so click a Snap button.
  • "Faces would be cut" on ANT Landscape: ANT's Subdivisions counts vertices, not faces (100 subdivisions = 99 faces). Use 101, or let Snap pick a count.
  • Textures shift between tiles: for materials using Object coordinates, set Advanced > Tile Origin to Terrain Origin. UV-based materials always work.
  • Cracks in Godot: turn on Skirts, or disable Godot's LOD generation for the tiles.
  • Where is my original? It's hidden. Select a tile and click the eye button in the Slice panel.

Found a bug or need a feature? Use Contact the creator on this page. Fixes over the next few weeks are prioritised by customer reports.


Legacy: version 0.2.0 (Blender 2.79 only)

The section below is the original 0.2.0 documentation, kept for Blender 2.79 users. It does not apply to 1.0.x.

How it works (0.2.0)

Lodscape LOD Tools provides a tab in the Tool Shelf in Blender with 2 separate panels. The Slice Panel: in the Slice panel you will be able to create the number of cells you want for your landscape; you also have an option to rename the cells in a grid way (A1, A2... Z1, Z2).

0.2.0 Slice panel

The Levels of Detail Panel: once you're happy with the number of cells created for your landscape, in this panel you can then set safe margins for the LOD creation. This will set margin groups for the LOD generator to work with and perfectly match each cell's Level of Detail with the neighbor cells.

0.2.0 Margins

After that, select all cells and set the number of LODs you want to generate. It will show you the distances automatically set for you based on the size of the cells; the ratios (percentage of vertices to be reduced from the original cell) are also set automatically as a base for you. If you're feeling lucky, just press the button to generate the LODs; you can always undo to fine tune the ratios and redo it again, quick and easy.

0.2.0 Levels of Detail panel

The newly created LODs will be hidden and packed individually to each original cell. To see the results, change the render to Game Engine and move around. If the LODs were created with proper ratio settings you will have a hard time seeing the results (pat yourself on the back, good job), so you may want to change to wireframe mode to check if the LODs are really working.

0.2.0 Tool Shelf UI

0.2.0 seamless LODs in wireframe

TIP: After the LODs are created, if you need to fix just a few of them, instead of redoing all the LODs with different ratios, you may want to fine tune only those that are not perfectly matching. The renaming option becomes useful here as you can search the outliner for the name of the cells, unhide the corresponding LODs, delete them, select the cells that need fixing, set new ratios in the LOD Tools Panel and generate new LODs only on those cells selected.

Limitations (0.2.0)

Slice Tool

  • Only works with square terrains
  • Landscape size limit: 8192 Blender units
  • Number of rows/columns: 26
  • Number of rows/columns is conditioned to a modulus 0, so the renaming will work properly and to prevent crashes. This means a 1000x1000 landscape works well with 2, 4, 5, 8, 10, 20... rows/columns but not with 3, 6, 7, 9, 11... rows/columns. In any case the slice tool will be grayed out and show an info tip if this condition is not met.

LOD Tool

  • Margin limited to 5 steps, usually 1 is enough.
  • Max number of LODs per object: 5

Known issues (0.2.0)

The landscape must be perfectly square and preferably in round Blender units, or the slice tool will be grayed out. Even when the size shows an integer number, sometimes that is not true for Blender internally, usually after some scaling. Example: the dimensions panel shows x:1000, y:1000, but the slice tool is grayed out with an info saying that the terrain is not square. Internally the sizes may be something like x:1000.0213, y:999.109. To solve this, go to the dimensions panel and type 1000 on the X and Y axis.

Screenshots

LODscape sidebar UI

LODscape sidebar UI

LODscape sidebar UI

LODscape sidebar UI

LODscape sidebar UI

LODscape sidebar UI

$14.99

Have questions about this product?
Login to message

Details
Blender Extension Compatible Yes
Sales 60+
Rating
2 ratings
Dev Fund Contributor
Published almost 11 years ago
Blender Version 4.2 - 5.2
Extension Type Add-on
License GPL