Maps
Maps let you place entities on a visual canvas — game world maps, floor plans, relationship pinboards, garden plots, or any spatial layout your project needs. Maps are template-driven, so the available pin types, layers, and rendering style depend on which map template you choose.
StudioBrain offers several map types, from simple image overlays (free in core) to 3D terrain with game engine export.
Map Types
Image Map (Core — Free)
Upload a custom image as a map background (world map, dungeon, floorplan) and place entity pins via drag-and-drop. Powered by Leaflet CRS.Simple for smooth pan/zoom on non-geographic images.
| Feature | Details |
|---|---|
| Background | Any image (PNG, JPEG, WebP, SVG, GIF — up to 20 MB) |
| Pins | Drag-and-drop entity pins with color, label, and entity link |
| Coordinates | 0.0–1.0 normalized (relative to image dimensions) |
| Pan/zoom | Leaflet-powered smooth navigation |
| Storage | project/_ImageMaps/{id}.json + images |
| Use cases | Game world maps, dungeon layouts, floor plans, garden plots |
Navigate to Image Map in the sidebar to get started.
3D Spatial Map (Core — Free)
A 3D terrain visualization and planning tool. Upload a heightmap, place entities in 3D space, paint zones, and export to game engines (Unreal Engine, UEFN, Unity, Godot, glTF).
| Feature | Details |
|---|---|
| Terrain | Heightmap upload (PNG, EXR, RAW, TIFF — 16-bit grayscale recommended) |
| Entities | Place project entities as 3D pins on the terrain surface |
| Zones | Paint polygon regions, assign template type + properties |
| Export | JSON, CSV (DataTable), glTF, heightmap PNG, Python spawn script |
| Engine presets | Unreal Classic, UEFN/LUF, Unity, Godot, glTF 2.0, Custom |
| Coordinate system | Internal: right-handed Y-up meters. Converted at export time. |
| Storage | project/_SpatialMaps/{id}.json + heightmap files |
| Use cases | Game world planning, level design prep, 3D asset placement, engine export |
Navigate to 3D Map in the sidebar to get started.
Engine Export Presets
The 3D Spatial Map exports entity positions and terrain data in engine-specific coordinate systems:
| Preset | Up Axis | Handedness | Unit | Notes |
|---|---|---|---|---|
| Unreal Classic | Z | Left | cm | Traditional UE5 |
| UEFN / Unreal LUF | Y | Right | cm | New Fortnite standard (2025+) |
| Unity | Y | Left | m | Standard Unity |
| Godot | Y | Right | m | Standard Godot |
| glTF 2.0 | Y | Right | m | Universal 3D interchange format |
| Custom | User choice | User choice | User choice | Full manual control |
Export formats include:
- Coordinate JSON — Entity positions, rotations, metadata
- DataTable CSV — Unreal-compatible import table
- glTF Scene — Terrain mesh with entity markers
- Heightmap PNG — Raw elevation data for engine terrain systems
- Python Script — Unreal/UEFN actor spawn script (uses Unreal’s Python API)
Zone Painter
Paint polygon regions on the terrain to define biomes, areas, or zones. Each zone has:
- Name — “Dark Forest”, “River Valley”, etc.
- Template type — any template type from your project (biome, garden_bed, district, etc.)
- Color — visual overlay on the terrain
- Fields — key-value properties (elevation, vegetation, etc.)
Zones serve as input for AI terrain generation (cloud feature) and are included in all exports.
Tile Map (Cloud — Commercial)
Grid-based map editor with terrain painting, entity placement, zone overlays, and SVG export. Available on Indie+ plans.
| Feature | Details |
|---|---|
| Grid | Configurable tile size and dimensions |
| Terrain painting | Palette of terrain types (grass, water, mountain, etc.) |
| Layers | Terrain, entities, zones, annotations |
| Entity placement | Place entities on grid cells |
| Export | SVG, JSON |
| Use cases | Strategy game maps, dungeon grids, board game layouts, tactical encounters |
Geographic Map (Cloud — Commercial)
Real-world map powered by Leaflet + OpenStreetMap tiles. Available on Indie+ plans.
| Feature | Details |
|---|---|
| Base map | OpenStreetMap tiles (free, no API key required) |
| Geocoding | Address search via Nominatim (forward + reverse) |
| Geofences | Circle, polygon, and rectangle regions |
| Heatmap | Entity density visualization |
| Entity pins | Place entities at real-world lat/lng coordinates |
| Use cases | Location scouting, event planning, real-world game integration, travel |
Template-Driven Map System
All map types use the _MAPS/ template directory (alongside _TEMPLATES/ for entities and _DOCUMENTS/ for documents). A map template defines the renderer, pin types, layers, and available features.
Creating a Custom Map Template
Create a file at _MAPS/{NAME}_MAP_TEMPLATE.md:
---
template_version: "2.0"
template_category: "map"
template_name: "Garden Map"
template_id: "garden-map"
description: "Plan your garden with plant beds and paths"
icon: "Flower"
renderer: "image-overlay"
pin_types:
- id: "plant_bed"
label: "Plant Bed"
icon: "Sprout"
color: "#22c55e"
entity_types: ["plant"]
- id: "path"
label: "Path"
icon: "Footprints"
color: "#a3a3a3"
- id: "water_source"
label: "Water Source"
icon: "Droplet"
color: "#3b82f6"
default_layers:
- id: "beds"
name: "Plant Beds"
- id: "paths"
name: "Paths"
- id: "infrastructure"
name: "Infrastructure"
fields:
title: { type: string, required: true }
description: { type: string }
tags: [garden, planning]
---
# Garden Map
Plan your garden layout with plant beds, paths, and water sources.Available Renderers
| Renderer | Edition | Description |
|---|---|---|
image-overlay | Core (free) | Leaflet CRS.Simple — custom image + pins |
spatial-3d | Core (free) | Three.js terrain — heightmaps + 3D entity placement + engine export |
tile-2d | Cloud (Indie+) | Canvas grid — terrain painting + entity placement |
geo-leaflet | Cloud (Indie+) | Leaflet + OSM — real-world geographic maps |
AI Map Generation (Cloud — GPU Required)
With a cloud license and AI server access, you can generate map content from your zone and entity layout:
- 3D Terrain — Heightmap + texture generation from zone descriptions (e.g., “Dark Forest with hilly terrain”)
- 2D Tile Grid — AI fills a tile grid based on zones, suggests entity placements
- Map Illustration — Top-down map image in various styles (fantasy cartography, watercolor, satellite)
The AI interprets your template names and fields semantically — “Dark Forest” means the same whether it is a game biome, a garden section, or a film set location.
See the Generate with AI button in any map editor (only visible when AI service is available).
Export and Import
Exporting Maps
| Format | Available in | Description |
|---|---|---|
| JSON | All map types | Full map data — pins, zones, layers, settings |
| PNG | Image Map, 3D Map | Rasterized image / heightmap |
| CSV | 3D Map, Tile Map | DataTable format (Unreal-compatible) |
| glTF | 3D Map | 3D scene with terrain mesh + markers |
| SVG | Tile Map | Vector tile grid |
| Python | 3D Map | Unreal/UEFN actor spawn script |
| GeoJSON | Geographic Map | Standard geographic interchange format |
Importing
| Format | What It Imports |
|---|---|
| JSON | Complete map with all elements |
| CSV | Bulk pin import (label, x, y, pin_type, entity_ref) |
| Image | Background image (Image Map) or heightmap (3D Map) |
See Also
- Mood Board — Visual reference and inspiration boards
- Template Categories — How entity, document, and map templates differ
- Managing Entities — Creating and editing entities that maps link to