3D Mesh Optimizer
Prepare AI-generated .glb meshes for Unity, Godot, Unreal, and Three.js: auto-center pivot to ground (y=0), normalize real-world height in meters, and downscale/compress embedded textures by up to 85%.
Parameters
Configure parameters and run inference.
Ready for Execution
Configure parameters on the left and click Run Microservice to generate output.
Processing Microservice...
Spawning browser worker & capturing full render...
{}
Execution Failed
Failed to connect to worker.
Invoke this microservice programmatically from your backend application. Authenticate by passing your Lumoz API key in the Authorization: Bearer YOUR_API_KEY header.
curl -X POST https://lumozai.com/api/v1/services/run \
-H "Authorization: Bearer YOUR_LUMOZ_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"service_id": "3d-mesh-optimizer",
"url": "https://lumozai.com",
"w": 1920,
"h": 1080
}'
import requests
url = "https://lumozai.com/api/v1/services/run"
headers = {
"Authorization": "Bearer YOUR_LUMOZ_API_KEY",
"Content-Type": "application/json"
}
payload = {
"service_id": "3d-mesh-optimizer",
"url": "https://lumozai.com",
"w": 1920,
"h": 1080
}
response = requests.post(url, json=payload, headers=headers)
data = response.json()
print("Output:", data.get("output"))
print("Execution time:", data.get("execution_time"))
const response = await fetch("https://lumozai.com/api/v1/services/run", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_LUMOZ_API_KEY",
"Content-Type": "application/json"
},
body: JSON.stringify({
service_id: "3d-mesh-optimizer",
url: "https://lumozai.com",
w: 1920,
h: 1080
})
});
const data = await response.json();
console.log("Output URL:", data.output);
Parameters Schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
glb_url |
string | Yes | - |
Public URL of the input .glb 3D mesh |
pivot |
string | No | "ground" |
Pivot alignment: ground (y=0 floor), center (origin), or keep |
target_height |
number | No | - |
Optional real-world height in meters (e.g. 1.8 for a character, 1.0 for a prop) |
max_texture_size |
integer | No | 1024 |
Max embedded texture dimension in pixels (512 for WebGL/Three.js, 1024-2048 for Unity/Unreal) |
texture_format |
string | No | "jpeg" |
Texture compression format (jpeg for universal engine support, webp for smallest WebGL size; alpha PNGs preserved automatically) |
texture_quality |
integer | No | 82 |
Texture compression quality (40-98, default 82) |