Document
Terrain Studio 1.0.0 · reference edition 12 October 2026. This reference is stored with the app for offline use.
Start a terrain
Use Terrain, then Layout to choose the map and foundation. Open Sketch to draw level boundaries. Choose a Build profile and Parts profile, then open Build and select Generate. Generation runs in Python WebAssembly on this device. A large map may pause during preparation; the activity log shows the current stage.
A live terrain preview guides the shape. Generate builds from the submitted drawing and settings. Load Model displays an immutable saved snapshot. It does not replace the live draft. Changes to a drawing or profile affect a future generation. Every generation has a new version; saved revisions remain available.
The Home page describes the release and gives access to Terrain. Layout/world experiments, Mountains, Stairs and standalone model/reference pages can exist in an installed pack even when their shared navigation entries are hidden. Hidden or disabled features are identified in the control reference; World Builder is unavailable in version 1.0.0.
Layout and foundations
Select 32 × 32, 48 × 48 or mixed plates and the number of columns/rows, then Apply map size. Mixed rows/columns use 96-stud spans. Existing selected dimensions are retained. Custom layouts place 32/48 plates on a 16-stud grid; they must not overlap or fall outside the map. Layout plate Z runs down the screen; the terrain drawing uses front-left coordinates.
Standard baseplate provides the selected fixed plate. MILS uses a four-plate ground datum and outward Technic connectors. None produces a standalone model. Foundation parts have a separate fixed contract from optional terrain parts. Baseplate colour, per-plate colour and foundation surface settings apply on generation. No terrain part may cross a module boundary.
Save Layout downloads its versioned JSON. Load Layout copies checked layout settings into the draft with a recovery backup. Reset/New require their displayed confirmation before replacing the current drawing; saved models remain separate. Back up drawings before clearing browser storage.
Sketch, levels and paths
Select a level/line before drawing. Drawing again replaces that selected line. Add line creates a new boundary. Level heights use whole plates and increasing cumulative heights; moving a line changes ordering, and Rise changes the selected band's contribution while shifting later levels. A two-boundary line defines an explicit corridor; ordinary open boundaries use their selected uphill side, slope angle and width.
Click/tap points to draw. Enter or Escape finishes a usable contour; Escape cancels a point drag and keeps the existing sketch. Undo restores the preceding edit. Drag a selected point to move it. Use the displayed drawing/edit controls for deletion, insertion and pan/zoom; arbitrary keyboard shortcuts are not assumed.
Colours selected in Sketch are actual build colours. Review colours are temporary display aids. Level material, foundation material, painted surface areas and paths each have their own ownership rules. A path overlay retains its stable ID when edited. Select a path and move its control points; arrow keys move a selected path point by one stud, Enter finishes and Escape cancels the current edit. Do not create a second path merely to edit an existing one.
On the surface canvas, arrow keys move the keyboard stud cursor. Space places/paints at it. Enter finishes a polygon/path and Escape cancels the current stroke. Path surface height can be Recessed by one plate, Flush or Raised by one plate. Water stacks, borders and backing supports are generated together; a colour change does not certify real-world part availability.
Build profiles and construction options
A Build profile stores the construction recipe and its Parts profile. A per-line recipe is frozen when assigned to a line and applies to that line's face; global settings apply to shared terrain and defaults. Save/duplicate/import/export act on recipes, not saved model geometry. The control index lists the actual fresh-install defaults and finite choices for this pack.
Blank Build seed chooses a new build seed. An explicit whole seed repeats the construction choices for the same drawing, permissions and engine. Fitting direction prioritises the foot, crest or both; physical assembly remains bottom up. Angle variance, repeat avoidance, shape bias/influence, taper placement and jitter tune legal candidates within the drawn band. They may have no visible effect when the permitted catalogue offers no alternative.
Corner exchanges require a sustained turn beyond ±45°. Top-down planning anchors the crest; outer planning anchors the outer corner. Fan staggering, course heights and corner seam preference affect reviewed corner assemblies, and do not imply identical changes to straight runs. A soft seam preference can have no effect where legal geometry has no alternative.
Side walls control exposed backing. Infill controls enclosed backing; Below bricks only supplies backing under brick/slope footprints. Disabling backing creates a cutaway review model with the corresponding assembly limitations. Terrain parts: Plates only bypasses brick/slope face recipes and requires Standard or None foundation; MILS and tile/water surfaces conflict with this mode.
Build Options technique presets offer None/Low/Medium/High/All with generator-specific overrides. Mountains supports more techniques than Cliffs. Sideways/SNOT remains unavailable. Displaying an option in an imported compatibility record does not activate an unsupported technique.
Generate, cancel and post optimisation
Generate freezes the current drawing, Parts permissions, construction options and seed. The activity panel distinguishes provisional geometry/counts from the completed model. A cancelled or failed build preserves the drawing and prior saved models. The browser worker is terminated on cancellation and starts anew for the next request. Reduce dimensions or height if the on-device memory/preview limit is exceeded.
Build creates the normal completed baseline. The separate Optimise button beside Build applies to the displayed completed model, using the Fewer parts or Lower cost objective. The objective is remembered on this device independently of the drawing. Optimise uses the model’s saved build settings and parts permissions, even when the live draft has changed. Build or load a compatible model first; older saved models lacking build metadata remain viewable but require a fresh build before optimisation. Optimise for fewer parts searches complete rectangular covers with the largest fitting pieces first and revisits choices. Optimise for cheaper parts minimises the complete comparable static AUD total and can replace a large piece with several cheaper pieces.
The initial valid model is saved and shown before the pass. A changed successful cover becomes a new immutable derived version linked to the source MPD hash. Geometry, BOM, downloads, validation and build order are rebuilt together. Failure or cancellation retains the original. If no improvement is found, the source identity is retained with a report.
Eligible regions are ordinary horizontal studded plates/bricks with the same actual colour, plate height, role and module, with complete stud-grid bearing. Recognised path, water, contour and support tags participate while their requirements are preserved. Fixed foundations, shaped parts, unknown attachment metadata and uncertain bearings are retained. The pass does not bridge holes, re-enable exclusions or alter colour regions. Reports distinguish proof within fully searched eligible regions from the best valid cover found within the search bounds (256 cells and 30,000 nodes per region). They do not claim a global optimum across locked components.
Cheaper parts uses only current imported Used/AUD/six-month sold averages from the installed pack, with exact decimal comparisons. Unpriced source placements and candidates with unknown costs are retained/excluded respectively. Known subtotal is partial when unpriced parts remain. Postage and seller fees are excluded. No live price API runs.
Parts, colours, prices and views
Parts edits the profile selected in its manager. Protected defaults are read-only: Duplicate profile before changing groups, individual parts or colour permissions. Rename accepts 1–80 characters. Remove deletes a custom profile and returns affected selections to the protected default. Changes save automatically on this device. Undo cleanup restores the retained earlier lists where available.
Search matches part IDs/names. Group filters, Filter (category, scope and status), Sort and Reset filters only change the displayed rows. Refresh reloads the local catalogue. The price colour chooser and per-part colour checkboxes use the shared 18-colour Sketch palette. Known colour evidence constrains compatible choices; pricing is not availability evidence. Existing legacy choices are preserved, even if they are outside the newly offered palette.
View has Details, Small icons and Large icons. All three share the same ordered/filtered results, prices, inspect actions and permissions. This separate device display preference survives reload and does not change the selected Parts profile or the next build. Click a part image to inspect it; close the dialog with its close control or Escape.
Show colours reveals allowed colour choices for each part. A part's Enable switch controls its individual exclusion. Group enablement and generator compatibility apply in addition; a disabled/incompatible part is not silently enabled during generation. Fixed foundation components remain governed by the foundation contract.
Used/AUD prices are static imported observations for the selected colour. Missing means unknown. Plate unit price uses stud area; brick unit price uses width × depth × height in plates / 3. Sorting by unit efficiency does not establish the cheapest complete build. BOM prices use each model's actual part colours, not the Parts page's display-price colour.
Preview, review and exports
Live terrain shows a shape guide. Render LEGO/Generate produces a new model. Load Model opens a saved immutable snapshot. Review modes recolour the displayed model temporarily (for example by type, element or hidden fill); exported actual colours remain authoritative. Review colours do not establish legal colour availability, price or physical buildability.
Drag with one pointer to orbit. Shift-drag or right-drag pans; two pointers pan and pinch to zoom. With the preview canvas focused, arrows orbit, Shift+arrows pan and +/− zoom. Fit resets framing. The workspace divider supports arrow keys (10 pixels, Shift 50), Home/End bounds and Escape to cancel a drag.
Export the displayed model as MPD/LDraw and its BOM as CSV, XML or BSX when all wanted-list mappings are available. CSV retains missing mapping information. XML/BSX condition remains New while price estimates remain Used/AUD; check this distinction before purchase. Native BrickLink Studio opening, native rendering and physical assembly are separate acceptance steps.
Files, models and recovery
Drawing JSON stores editable settings; model MPD stores generated geometry. Layout, Parts profile and Build profile files have separate versioned formats. Load Drawing validates bounds and version before apply, retains a recovery copy and reloads the editor. Undo import restores the previous drawing/selection. Unsupported or malformed files are rejected instead of silently coerced.
Models are stored in IndexedDB on this browser origin. Model/history controls open, export, rename, mark deleted, restore and back up immutable versions. Changing a live draft does not overwrite a saved model. A model backup contains its generated files and metadata; restoring checks version and contents. If storage is full, finish a backup/export before removing old models. Clearing site data removes local drawings, profiles, settings and models.
The About file converter converts supported user-selected owned files. It cannot access arbitrary device files. A download is a browser file operation, not a native Studio save/reopen.
Offline, updates, usage and privacy
Wait for Ready offline before disconnecting. Install app appears only when the browser offers installation. Reconnect/Reload update appear when relevant. Reload update applies a downloaded version while preserving this origin's local drawings, models and profiles. Ordinary refresh does not prove a cached PWA has changed versions. An interrupted download may require connection and free storage before retry.
About → Usage statistics controls optional aggregate improvement statistics when the pack includes a collector. Beta includes additional allowlisted diagnostic categories. Global Privacy Control or Do Not Track turns usage off. Turning it off clears queued events and persists across tabs. Offline events are discarded. There are no persistent user IDs, project names, drawing contents or raw error text in the usage payload.
The separate diagnostic/feedback controls explain any extra information before submission. Automatic usage data and user-submitted diagnostic reports are different controls. Read the Privacy policy for the exact collection, purpose and retention. Owner statistics are authenticated; the collector exposes no public read endpoint.
Benchmark in About runs a pinned small fixture with one/two repetitions and no saved model. Timings describe this device and fixture, not every generator. Diagnostics reset/restart controls describe their effects and preserve user data unless an explicit delete operation is selected.
Troubleshooting
Missing parts during Generate
In Terrain’s Build settings, Missing parts controls required pieces outside the selected parts list or colour permissions. The default is Exclude · warn. Choose Include · warn to retain required known filler pieces as exceptions. Both actions also have a no warning choice.
Excluding a support also excludes pieces that lose their bearing. The resulting model can have gaps. The saved validation.json always records omitted or extra pieces, quantities and colours, even with warnings off. Your parts list and previous models stay unchanged. Fixed foundation pieces retain their separate rules. This setting cannot supply unknown geometry or suppress invalid-input, collision or module-boundary errors.
Generate takes minutes to start in Microsoft Edge
Symptom: a small drawing waits a long time at Preparing build, loading the Python runtime or loading NumPy and SciPy before fitting begins. This can also affect Terrain Studio installed as an Edge app (PWA).
Terrain Studio generates on your device using Python WebAssembly. Edge's enhanced security can disable just-in-time (JIT) compilation and substantially slow this runtime. Strict mode applies the protection to every site by default; Balanced can apply it to less familiar sites. See Microsoft's enhanced security guidance.
Optional site exception: if you trust this Terrain Studio installation, you can remove that extra protection for its site. This reduces the additional security protections for that site. Keep enhanced security enabled elsewhere.
- Save your project and let any build finish, or cancel it.
- In Edge, open Settings → Privacy, search, and services → Security.
- Open Site preferences for enhanced security, then add the site under Never use enhanced security for these sites. Labels can vary with Edge versions.
- Enter the full address of the installation you trust. For Terrain Studio Local Beta, use
http://127.0.0.1:8767. For a hosted installation, use its own trusted address. Avoid a wildcard exception. - Close and reopen Terrain Studio, then try Generate again. If the old browser process remains in use, save other browser work before restarting Edge.
To undo this change, remove the site from the same exception list. If your organisation manages the setting, ask its administrator.
Check whether startup improved
Expand Build log and compare elapsed times up to Fitting LEGO on this device. Keep the drawing, parts profile and explicit Build seed the same when comparing complete builds. The first build may include runtime initialization; later builds can reuse the ready engine. Compare those cases separately. A fast start does not guarantee a fast fit for a large or complex model.
If startup is still slow, use Help → Diagnostics and recovery to check the installed app pack and engine. Apply a downloaded update with Reload update when idle. Record the slow stage, elapsed time, browser version and seed. Clear errors about excluded parts are a separate issue from startup performance. Preserve your site data: clearing it can erase drawings, profiles and saved models.
Enhanced security and enhanced telemetry are separate
Edge enhanced security controls browser execution protections. Tracking prevention and Do Not Track / Global Privacy Control are separate privacy controls; changing them is not the remedy for this runtime slowdown. Terrain Studio's Enhanced telemetry records build stages, timings and seed when permitted. It defaults on in local/beta and off in production, and respects usage opt-out and browser no-tracking preferences. The visible Build log remains available when enhanced telemetry is off.
Debug overlays and transparency
Build’s View box contains independent Debug overlays checkboxes. Unique colour per element is a display-only aid, separate from Build Profile. Direction, Bricks + plates, Angle and Closest part annotate the live Preview; Terrain type and Terrain colour also use saved model settings. Several labels can be enabled together.
Show only switches target construction roles: cliff faces, level/top plates, foundation, support below bricks, walls, infill and water. Counts come from the displayed model’s tags. Untagged parts are shown separately. With no filters selected, every part is visible. Selecting roles or detailed categories shows their combined matches and completely hides every other part, including outlines. Changes affect only the viewer and preserve actual colours, generation settings, saved models and exports.
Cost heat map
After Build or Load Model, enable Cost heat map in the preview’s View panel. Blue is a cheaper individual piece, yellow is intermediate and red is a more expensive piece within this model’s known price range. Grey means an unknown or ambiguous price. The legend gives the AUD unit-price range and unknown count. This uses static Used prices for the actual part and colour, including foundation pieces. It does not use lot quantity, change actual model colours, alter generation settings or rewrite BOM/exports. Fees, postage and current stock are excluded. Turn it off to restore the previous review colours.
Worked examples
- Two terrain levels: choose one 32 × 32 module and MILS; add two open boundaries with cumulative heights of 3 and 6 plates. Assign the desired colours/face recipe, then Generate. Changing the second Rise changes the later band while preserving the first. Save the drawing JSON separately from the generated MPD.
- Edit a path: select an existing path in Sketch, move a control point and choose Recessed/Flush/Raised in its construction settings. Generate a new version and compare its border/support. Load the earlier model to compare without replacing the edited live draft.
- Compare optimisations: duplicate a Parts profile and enable compatible rectangular pieces. Build once with an explicit seed. Choose Fewer parts and click Optimise, then Load Model to reopen the original, choose Lower cost and click Optimise again. Both passes use the same completed baseline. Compare counts, known cost and priced coverage; an unchanged model is valid when no legal improvement exists.
- Offline and opt-out: allow installation to reach Ready offline, switch Usage statistics off in About, open Document, disconnect and reopen the app. Drawings/reference remain available; no queued usage backlog is uploaded on reconnection.
Glossary
- Stud
- The horizontal LEGO grid unit: 20 LDraw units / 8 mm.
- Plate
- Vertical unit: 8 LDraw units / 3.2 mm. Three plates equal one brick.
- Rise / cumulative height
- Rise is a band's height contribution; cumulative height is its top height above the terrain datum.
- Datum / MILS
- The common ground reference. Basic MILS uses a four-plate datum and compatible module connectors.
- Draft / submitted snapshot / saved model
- Editable current drawing; frozen generation inputs; immutable generated geometry respectively.
- Parts profile / Build profile
- Permitted catalogue/colour selections; construction recipe and related profile selection.
- BOM / wanted list
- Counted parts and actual colours; shopping export with resolved external IDs.
- Known subtotal / coverage
- Sum of priced quantities; the portion for which current compatible observations exist. Unknown prices are not zero.
- Derived model
- A new immutable result whose parent records the original model ID and MPD hash.
CLI/MCP and compatibility
The Node CLI and stdio MCP share the versioned actions registry. Implemented operations include settings, catalogue, capabilities, surface, validate, generate, optimise, slope study and benchmark; semantic design/profile/file operations are discoverable through their declared schemas. Use an explicit verified pack and a new output directory for model artifacts. Post optimisation choices are none, fewer-parts and cheaper-parts. UI camera, presentation preferences, installation and privacy consent remain browser-specific controls.
Legacy format identifiers and browser storage keys retain the former Terrain Workshop spelling to preserve installed data and import compatibility. They do not change the product name. Native desktop-only and hidden research controls are not presented as available cloud features. Older settings without postOptimisation use None.
Control reference
This inventory records the candidate's actual controls, fresh-install defaults, options/ranges and contextual help. In-app persisted values may differ. Availability depends on the selected workspace, profile, model and current build; disabled controls retain their values. The maintenance check flags changes to the recorded UI sources.