Load your AI-generated model at the right size

An AI 3D model generator gets you the look. Spatial Compiler gets the model into your engine: real size in meters, a lighter mesh with its texture and collision pieces your physics engine reads.

The generated mech imported into Godot 4 as it came out, 0.85 m tall next to a 1.8 m figure
The compiled mech in Godot 4, 1.8 m tall, with its collision shapes drawn in cyan

Imported as generated, 0.85 m

Compiled, 1.8 m with collision

  • 1.8 mtall, up from 0.85 m as generated
  • 63% fewertriangles, 148,407 down to 55,068
  • 64collision pieces Godot loads with the model
  • $5Free signup credit for 50 mesh Drafts

Both views are Godot 4 screenshots with visible collision shapes turned on. The gray capsule is 1.8 m tall. Compiled on the hosted API on 3 December 2026.

What your engine needs

Most generators size every model to fit a box about 1 unit across, so a mech the height of a door imports at knee height. It also arrives with about 150,000 triangles and no collision.

Fixing that means scaling by eye, decimating in another tool and building collision shapes one by one, for every model you generate.

What the terms mean

  • Real-world size

    The model's height in meters.

    Engines use meters, so a 1.8 m mech stands next to a 1.8 m player.

  • Collision pieces

    Simple convex shapes that wrap the model for physics.

    Without them, the player walks straight through the mech.

  • Texture

    The image painted onto the model.

    Spatial Compiler keeps the texture map, so the lighter mech looks the same.

How it works

  1. Send the model

    Your agent uploads the GLB, FBX, OBJ, STL or PLY from your generator over MCP, or your code calls the REST API.

  2. Set the size and compile

    The spec names the height in meters and asks for collision. Your first 50 mesh Drafts are free with the $5 signup credit.

  3. Drop it into your engine

    Current Godot 4 releases read the collision shapes from the GLB when they import the file. The report lists each change and the measured triangle count.

See the full GLB cleanup job

Questions

Which engines load the result?

Godot, Unity, Unreal Engine and three.js all load GLB. Current Godot 4 releases also build the collision shapes from the file on import.

Can my agent run every model in a folder?

Yes. Your agent sends one model per job over MCP or the API, sees each price first and reads each report.

All use cases

Use with your agent

Paste the prompt into Claude Code, Cursor or Codex. Your agent connects to Spatial Compiler and comes back with a GLB at its real size, with its texture, collision pieces and a report of every change.

New accounts start with $5 of usage, and you see the price of each job before it runs.

Agent prompt

Connect the Spatial Compiler MCP server at https://spatialcompiler.dev/mcp if it isn't connected yet. Use meshfx to get my AI-generated model ready for my engine: set it to its real height in meters, make it lighter while keeping its texture and add convex collision pieces. Run a Draft first. Your first 50 mesh Drafts are free with the $5 signup credit. Ask before running a final compile.

Or add the server yourself in Claude Code:

claude mcp add --transport http spatial-compiler https://spatialcompiler.dev/mcp

Set it up in Cursor, Codex or another agent

Once connected, your agent can call the starter tool for a ready fire Draft spec and the exact call that runs it. Your first 100 fire Drafts are free with the $5 signup credit.