---
title: "Spatial Compiler for AI gaming, UGC and AEC: untrusted geometry cleaned to budget"
description: "Clean player uploads, AI-generated game assets and CAD/BIM geometry to real-time budgets. Spatial Compiler runs 0-credit dry-run pre-flights, welds, decimates, UV-packs, ORM-bakes, adds convex colliders and bakes VAT effects, and pyro bakes fire and smoke flipbooks for Godot 4. Per-key velocity limits cap spend."
canonical: https://appliedmanifold.com/use-cases/gaming-ugc-aec/
site: "Applied Manifold: The spatial compute cloud for 3D reality."
---

1.  [Home](https://appliedmanifold.com/)
2.  [Use cases](https://appliedmanifold.com/use-cases/)
3.  AI gaming, UGC & AEC

USE CASE // AI GAMING · UGC · AEC

# Clean untrusted geometry to engine budgets.

AI game engines, UGC platforms and AEC tools ingest geometry they don’t control: player uploads, AI-generated props, CAD and BIM exports. Pre-flight each file, clean it to a triangle budget and add colliders and VAT effects over MCP or REST, with spend capped per key. For fire, smoke and dust, the [pyro module](https://appliedmanifold.com/modules/pyro/) bakes flipbooks for Godot 4.

Get Free API Key [Read the docs →](https://appliedmanifold.com/docs/)

From $0.05 per asset, as low as $0.02 on Studio. Sandbox includes 500 free credits.

**PIPELINE // UGC · AEC PER UPLOAD**

1.  IN upload\_88213.glb player · AI · BIM
2.  [dry\_run](https://appliedmanifold.com/docs/#dry-run) pre-flight · 0 credits
3.  [weld + decimate](https://appliedmanifold.com/docs/#op-decimate) target\_tris: 8,000
4.  [uv\_pack + orm\_bake](https://appliedmanifold.com/docs/#op-orm-bake) one material
5.  [convex\_hulls](https://appliedmanifold.com/docs/#op-convex-hulls) collider
6.  [vat\_export](https://appliedmanifold.com/docs/#op-vat-export) fracture · cloth, optional
7.  OUT game-ready .glb \+ telemetry.json

Stages of one upload (illustrative).

01 // PAIN → FIX

## Geometry you don’t control

Uploads, generated content and CAD models arrive at sizes and in shapes you can’t predict.

1.  PAIN

    Player uploads and AI-generated props arrive with unpredictable topology and triangle counts that blow frame budgets.

    FIX

    `weld` + `decimate` to the platform’s triangle budget, `uv_pack` + `orm_bake` into one material, and `convex_hulls` so props collide.

2.  PAIN

    Untrusted upload volume or a runaway agent can run up the bill unnoticed.

    FIX

    `dry_run: true` pre-flights every upload at 0 credits so you can reject what doesn’t fit. Per-key hourly velocity limits cap spend; duplicates are cache hits.

3.  PAIN

    CAD and BIM exports carry millions of triangles of fasteners, fillets and fine detail, far over a real-time budget for walkthroughs and design review.

    FIX

    Compile them to an explicit triangle budget with welded topology and baked materials, through the same API as every other asset.

4.  PAIN

    Destruction and cloth effects cost CPU every frame at runtime.

    FIX

    `simulate_fx_vat` bakes Voronoi fracture and XPBD cloth into Vertex Animated Textures with drop-in shaders, so playback costs zero CPU.

5.  PAIN

    Fire, smoke and explosions need flipbook sheets that someone has to simulate, render, pack and wire into the engine by hand.

    FIX

    The [pyro module](https://appliedmanifold.com/modules/pyro/) bakes six-way lit flipbook sheets from a `.pyro.toml` spec, and `spatial-compiler wire` installs `flipbook_6way.gdshader` into a Godot project and writes a ready scene for each bake.

02 // OPERATIONS

## Operations for live platforms

These operations enforce budgets and add physics and effects for content that arrives at upload volume.

-   ### [dry\_run](https://appliedmanifold.com/docs/#dry-run) 0 credits

    Pre-flight every upload and reject what doesn’t fit before anything is billed.

-   ### [weld + decimate](https://appliedmanifold.com/docs/#op-decimate) compile\_3d\_asset

    Produces clean topology at the platform’s `target_tris` for player uploads and CAD/BIM alike.

-   ### [uv\_pack + orm\_bake](https://appliedmanifold.com/docs/#op-orm-bake) compile\_3d\_asset

    Builds one atlas and one packed ORM texture, so each asset uses one material and fewer draw calls.

-   ### [convex\_hulls](https://appliedmanifold.com/docs/#op-convex-hulls) physics-ready

    Adds colliders to uploaded props, so they take part in physics the moment they spawn.

-   ### [voronoi\_fracture + vat\_export](https://appliedmanifold.com/docs/#op-vat-export) simulate\_fx\_vat

    Bakes destruction and cloth to Vertex Animated Textures with drop-in shaders.

-   ### [velocity limits](https://appliedmanifold.com/docs/#limits) per key

    Caps each key per hour, so an upload spike or a looping agent can’t drain credits.

03 // EXAMPLE ILLUSTRATIVE

## Pre-flight, then compile

A moderation worker dry-runs each upload over MCP, rejects what doesn’t fit, then compiles the rest to the platform budget.

mcp · tools/call · illustrative

```json
{
  "jsonrpc": "2.0",
  "id": 88213,
  "method": "tools/call",
  "params": {
    "name": "compile_3d_asset",
    "arguments": {
      "file": "uploads/u_88213/castle_gate.glb",
      "target_tris": 8000,
      "collider": "convex",
      "dry_run": true
    }
  }
}
```

telemetry.json · illustrative

```
[
  {
    "call": "dry_run",
    "status": "ok",
    "dry_run": true,
    "tris_in": 264000,
    "target_tris": 8000,
    "cache": "MISS",
    "credits_est": 0
  },
  {
    "call": "compile",
    "status": "ok",
    "dry_run": false,
    "tris_out": 8000,
    "collider": "convex",
    "credits_est": 5
  }
]
```

Illustrative output. Not measured.

Numbers in the request are inputs and targets you choose.

04 // FAQ

## Gaming, UGC & AEC questions

[All questions →](https://appliedmanifold.com/faq/)

**README.UGC**

### Which engines can load the output?

Mesh compiles return standard .glb (glTF 2.0). Pyro bakes go into Godot 4: `spatial-compiler wire` installs the six-way shader `flipbook_6way.gdshader` into a Godot project and writes a ready scene for each bake.

### How do we stop upload spikes or runaway agents from draining credits?

Pre-flight every upload with `dry_run: true` (0 credits) and reject what does not fit. Per-key hourly velocity limits cap spend, and duplicate uploads are SHA-256 cache hits that cost 0 credits.

### Does it handle CAD and BIM geometry for AEC?

Yes. The same pipeline welds CAD and BIM geometry, decimates it to an explicit triangle budget and bakes its materials. Teams can then review the models in real-time viewers.

### What do fracture and VAT bakes cost?

A standard compile is 5 credits ($0.05). Fracture or VAT bakes are 10 to 20 credits and cloth sims are 25+ credits, both at indicative rates.

## Pre-flight your next upload.

From $0.05 per asset, as low as $0.02 on Studio. Signup includes 500 free sandbox credits (~100 compiles), and cache hits and dry runs cost 0 credits.

Get Free API Key [Read the docs →](https://appliedmanifold.com/docs/) [Pyro module →](https://appliedmanifold.com/modules/pyro/) [Pricing →](https://appliedmanifold.com/pricing/)

[All use cases →](https://appliedmanifold.com/use-cases/)
