ArchBridge Engine Export Validator (Flagship
ArchBridge Engine Export Validator prepares architectural Blender assets for Unreal Engine, Unity, and Godot with deterministic LOD generation, UCX_ convex collision hulls, pure-Python UV2 lightmap overlap & texel-density validation, and version-safe batch FBX/glTF export.
- Extension ID (Pro):
archbridge_engine_export_validator - Extension ID (Lite):
archbridge_engine_export_validator_lite - N-Panel Location:
3D Viewport→ Sidebar (N) →ArchBridge - License: GNU GPLv3 (
SPDX:GPL-3.0-or-later) - Compatibility: Blender 4.2 LTS, 4.5 LTS, and 5.x
Operator Reference
Section titled “Operator Reference”Every mutating operator declares bl_options = {'REGISTER', 'UNDO'}, cleans up every bmesh handle in a finally: block, and guards viewport shading overlays cleanly when running in blender --background headless mode.
1. Batch Unreal / Unity / Godot LOD Generator (archbridge_export.generate_lods)
Section titled “1. Batch Unreal / Unity / Godot LOD Generator (archbridge_export.generate_lods)”Generates clean evaluated decimation LOD meshes with engine-compliant naming, preserved materials and UV maps, and organized collection hierarchy.
- Edition: Lite (
LOD0+LOD1on active object) / Pro (multi-object batchLOD0–LOD3chains) - Engine Naming Presets:
| Target Engine | Generated Mesh Names |
|---|---|
Unreal Engine (UNREAL) |
SM_<Base>_LOD0, SM_<Base>_LOD1, SM_<Base>_LOD2, SM_<Base>_LOD3 |
Unity (UNITY) |
<Base>_LOD0, <Base>_LOD1, <Base>_LOD2, <Base>_LOD3 |
Godot (GODOT) |
<Base>-lod0, <Base>-lod1, <Base>-lod2, <Base>-lod3 |
- Default Ratios:
1.0(LOD0),0.5(LOD1),0.25(LOD2),0.12(LOD3), fully configurable per project. - Hierarchy & Clean Bake: Organizes LOD chains into the
ArchBridge_LODscollection (with optional LODGroup Empty parent and material-seam preservation) using evaluateddepsgraph+bpy.data.meshes.new_from_objectandbmeshcleanup without mutating your source mesh destructively.
2. UCX_ Convex Collision Hull Creator (archbridge_export.generate_ucx)
Section titled “2. UCX_ Convex Collision Hull Creator (archbridge_export.generate_ucx)”Generates Unreal-compliant convex collision meshes named UCX_<MeshName>_01..NN in the ArchBridge_Collision collection with outward normals, wireframe viewport display (display_type = 'WIRE'), and hide_render = True.
- Edition:
- Lite (
SINGLE): Generates a single tight convex hull (UCX_<MeshName>_01) viabmesh.ops.convex_hull. - Pro (
AUTO_DECOMPOSE): Adds multi-hull decomposition (splitting disconnected islands and axis-aligned spatial clusters for concave architectural geometry such as L-shaped walls, U-rooms, doorways, and courtyards; default max8hulls, split threshold0.85) and checks Unreal’s per-hull convex triangle budget (default128tris/hull).
- Lite (
3. UV2 Lightmap Overlap & Texel-Density Validator (archbridge_export.validate_uv2)
Section titled “3. UV2 Lightmap Overlap & Texel-Density Validator (archbridge_export.validate_uv2)”Pure-Python + bmesh/mathutils deterministic validator (zero external dependencies) that catches the exact lightmap failures Unreal Lightmass, Unity Progressive Lightmapper, and Godot LightmapGI reject on import:
- Edition: Lite & Pro
- Checks Performed:
- UV2 Channel Presence: Verifies the target UV2 lightmap layer (default UV index
1) exists. - Out-of-Bounds Coordinates: Flags any UV2 coordinate outside
[0.0, 1.0]. - Exact 2D Triangle-Triangle Overlap Detection: Uses spatial-hash grid acceleration + 2D SAT/segment-intersection & point-in-triangle testing across triangulated UV2 faces while cleanly ignoring shared vertices/edges so adjacent triangles never false-positive.
- Texel Density Audit (
px/m): Measures real 3D world-space triangle area vs. UV area against your configured target lightmap resolution (default1024px) and target texel density (default256.0 px/m±25.0%tolerance).
- UV2 Channel Presence: Verifies the target UV2 lightmap layer (default UV index
- Red / Yellow / Green N-Panel Report:
PASS(Green): Valid UV2, zero overlaps, zero out-of-bounds UVs, texel density within tolerance.WARN(Yellow): Valid non-overlapping UV2, but texel density or degenerate warnings fall outside target tolerance.FAIL(Red): Missing UV2 channel, overlapping UV2 triangles, or out-of-bounds UV2 islands.
4. Viewport Color Highlight Toggle & Clear Report (archbridge_export.toggle_viewport_report / clear_report)
Section titled “4. Viewport Color Highlight Toggle & Clear Report (archbridge_export.toggle_viewport_report / clear_report)”Colors validated mesh objects directly in the 3D Viewport based on their validation status — Green (PASS), Yellow (WARN), or Red (FAIL) — and switches interactive viewport shading to OBJECT color mode while preserving your original obj.color values for clean one-click restoration and Undo. Use archbridge_export.clear_report to clear stored UV2 report rows and reset viewport highlights cleanly.
- Edition: Lite & Pro
- Headless Safe: Automatically skips interactive 3D View shading-type mutations when
bpy.app.backgroundis true.
5. Automated Headless UV2 Lightmap Auto-Fix (archbridge_export.autofix_uv2)
Section titled “5. Automated Headless UV2 Lightmap Auto-Fix (archbridge_export.autofix_uv2)”Fixes failing UV2 channels automatically without requiring an interactive UV Editor area.
- Edition: Pro only (cleanly stripped from the Lite
.zip) - Behavior: Creates a missing UV2 layer if absent, generates deterministic non-overlapping box/atlas projection islands, packs islands cleanly into
[0.0, 1.0]with configurable island gutter padding (default4 px) via a pure-bmeshshelf packer, and normalizes texel density — flipping failing red meshes to green in a single undoable step.
6. Batch FBX / glTF Preset Exporter (archbridge_export.batch_export)
Section titled “6. Batch FBX / glTF Preset Exporter (archbridge_export.batch_export)”Exports assets to your target folder (default //exports) with engine-tested axis, scale, tangent, and material settings while automatically bundling matching LOD chains and UCX_ collision meshes per asset.
- Edition: Lite (single active object) / Pro (multi-asset batch export with optional per-asset subfolders &
archbridge_export_manifest.jsonreport) - Supported Engine Presets:
UNREAL_FBX(.fbx)UNREAL_GLTF(.glb)UNITY_FBX(.fbx)UNITY_GLTF(.glb)GODOT_GLTF(.glb)
- Blender 4.2 / 4.5 / 5.x Safe: Dynamically introspects valid kwargs via
op.get_rna_type().propertiesbefore callingbpy.ops.export_scene.fbxorbpy.ops.export_scene.gltf, preventingTypeErrorregressions across Blender versions.
7. Support Diagnostics (archbridge_export.copy_diagnostics)
Section titled “7. Support Diagnostics (archbridge_export.copy_diagnostics)”Copies add-on version/edition, Blender build details, OS, Python version, scene render/unit state, and the last recorded traceback to your clipboard. See Diagnostics, Licensing & Policy.
Pro vs. Lite Comparison
Section titled “Pro vs. Lite Comparison”| Feature / Operator | Lite (extensions.blender.org) |
Pro (Superhive / Bundle) |
|---|---|---|
archbridge_export.validate_uv2 (Red/Yellow/Green Report) |
Included | Included |
archbridge_export.toggle_viewport_report |
Included | Included |
archbridge_export.generate_lods |
Single object (LOD0 + LOD1) |
Multi-object batch (LOD0–LOD3) |
archbridge_export.generate_ucx |
Single tight hull (UCX_*_01) |
Multi-hull concave decomposition + budget check |
archbridge_export.autofix_uv2 (Headless UV2 Pack & Fix) |
— | Included |
archbridge_export.batch_export (FBX / glTF Presets) |
Single active object | Multi-asset batch + JSON manifest report |
archbridge_export.copy_diagnostics |
Included | Included |
Headless Validation & Export Pipeline Example
Section titled “Headless Validation & Export Pipeline Example”import bpy
# 1. Validate UV2 lightmap overlaps & texel density across selected architectural meshesbpy.ops.archbridge_export.validate_uv2()
# 2. Pro: automatically fix missing/overlapping UV2 channels headlesslybpy.ops.archbridge_export.autofix_uv2()
# 3. Re-validate to confirm PASS (Green)bpy.ops.archbridge_export.validate_uv2()
# 4. Generate Unreal LODs and UCX_ convex collision hullsbpy.ops.archbridge_export.generate_lods()bpy.ops.archbridge_export.generate_ucx()
# 5. Export using version-safe Unreal/Unity/Godot FBX or glTF presetsbpy.ops.archbridge_export.batch_export()