TrenchBroom icon

TrenchBroom

Standard softwareFOSS · GPL-3.0

GPL-3.0 3D brush/CSG level editor for Quake & Godot

Free (GPL-3.0) · Kristian Duske & Contributors · Standard software workflow; Steam AI disclosure does not apply.

AI
Standard
IP
Commercial-Safe IP
Engines
Godot, Bevy, Unity
Platforms
Windows · macOS · Linux
Version
2024.2
Technical Summary

TrenchBroom is a free, GPL-3.0 open-source 3D brush and CSG level editor for Windows, macOS, and Linux. Built originally for Quake, it serves modern Godot (via FuncGodot), Bevy (via bevy_trenchbroom), Unity, and Unreal pipelines for rapid architectural blockouts, retro FPS geometry, and plain-text .map prefab workflows.

Technical Overview

Architecture and Production Workflow

TrenchBroom models 3D architecture through convex polyhedron brushes rather than polygon-by-polygon mesh topology. Level designers slice volumes in perspective view using the 3-point Clipper tool, drag vertices, edges, and faces on configurable power-of-two grids, and align trim sheets interactively with UV lock, shear, and face-aligned projection. Levels serialize to human-readable plain-text Quake or Valve 220 .map files where each brush stores mathematical half-space planes and [ux uy uz offset] texture axes, making multi-branch Git diffs clean and mergeable.

Modern studio pipelines pair TrenchBroom with custom .fgd (Forge Game Data) entity schemas:

  • Godot 4 (FuncGodot / Qodot): Parses Valve 220 .map files directly inside the editor, merging brushes by material into optimized MeshInstance3D surfaces, generating convex or trimesh CollisionShape3D nodes, and mapping .fgd key-value properties to typed GDScript or C# @export resources.
  • Bevy (bevy_trenchbroom): Spawns ECS entity hierarchies and avian3d/rapier3d colliders directly from TrenchBroom brush and point entities.
  • Unity, Unreal, and Blender: Exports grouped .obj geometry with preserved material slots, or compiles classic .bsp levels via ericw-tools (qbsp, vis, light).

Pricing, Licensing, and Commercial Rights

TrenchBroom is 100% free and open source under the GPL-3.0 license across Windows, macOS, and Linux, with zero seat fees, subscriptions, or revenue royalties. Because GPL-3.0 governs the desktop editor's C++ source code rather than data files authored with it, your exported .map and .obj level assets carry zero copyleft obligations. Commercial Steam and console titles ship freely using MIT-licensed runtime importers such as FuncGodot and bevy_trenchbroom.

Strengths and Tradeoffs in Studio Pipelines

Pipeline DimensionTrenchBroom AdvantageLimitation / When to Swap
Greyboxing SpeedCuts interior rooms, hallways, stairs, and sightlines 3x to 5x faster than DCC polygon modelingCannot sculpt organic caves or smooth displacement terrain; pair with Blender or Gaea
UV & Trim WorkflowsInstant per-face UV scale, rotation, and planar lock without manual UV unwrappingConcave volumes must be decomposed into multiple convex brushes to prevent geometry errors
Engine IntegrationTyped .fgd point and brush entities spawn doors, triggers, lights, and enemy spawnersNo built-in real-time global illumination; relies on engine GI (SDFGI/Lumen) or ericw-tools baking

AI Transparency & Steam Disclosure

Standard Software

Procedural math, physics, or manual authoring software.

Steamworks guidance: Standard software workflow; Steam AI disclosure does not apply.

Technical FAQ about TrenchBroom

Does TrenchBroom's GPL-3.0 license affect commercial games sold on Steam?
No. GPL-3.0 applies strictly to TrenchBroom's own editor source code, not to the .map or .obj level files you create with it. Pairing those .map files with MIT-licensed importers like FuncGodot or bevy_trenchbroom lets you ship closed-source commercial PC and console games without source disclosure.
Should Godot 4 projects use FuncGodot or Qodot with TrenchBroom?
New Godot 4.x projects should use FuncGodot, the actively maintained MIT rewrite created by members of the Qodot community. FuncGodot replaces legacy GDNative dependencies with pure GDScript/C# parsing, supports typed FGD resource generation, automates OccluderInstance3D creation, and runs cleanly on forward-compatible Godot 4 builds.
Why do concave brushes break in TrenchBroom and how do you build curved walls?
TrenchBroom represents every brush as an intersection of infinite half-space planes, which mathematically requires every single brush to remain strictly convex. Dragging a vertex inward into a concave shape invalidates plane intersections; instead, build arches, cylinders, and L-corners by grouping multiple wedge-shaped convex brushes.

More tools like TrenchBroom