{
 "id": "trellis",
 "title": "TRELLIS (Structured 3D Latents)",
 "aliases": [
  "SLAT"
 ],
 "domain": "genai",
 "subdomain": "structured-latent 3D diffusion",
 "stage": "generation",
 "realtime": "interactive",
 "platforms": [
  "cuda",
  "python"
 ],
 "year_introduced": 2024,
 "inputs": [
  "text-prompt",
  "ldr-image"
 ],
 "outputs": [
  "gaussians",
  "radiance-field",
  "mesh"
 ],
 "style": "both",
 "dynamic": "static",
 "summary": "Encodes an asset as features attached to active cells of a sparse voxel grid, then generates it with two rectified-flow transformers (structure, then features) and decodes to Gaussians, radiance fields or a mesh.",
 "how_it_works": "A 3D asset is rendered from many views, features from a pretrained vision model are aggregated onto the voxels that intersect the surface, and a sparse VAE compresses them into a structured latent (SLAT): a list of occupied voxel positions plus a latent vector per voxel. Generation is two-stage. A first flow transformer predicts which voxels are occupied (the coarse structure); a second, sparse-aware transformer fills in the latent vector at each of those voxels. Separate decoders turn the same SLAT into 3D Gaussians, a radiance field or a mesh, so one model serves several output formats. Text or image conditioning enters through cross-attention.",
 "when_to_use": "Choose it for MIT-licensed image- or text-to-3D when you want Gaussian or mesh output with decent textures and can run a CUDA GPU with a large memory budget. Prefer `trellis-2` when you need PBR channels and arbitrary topology, `hunyuan3d-2-1` for PBR-textured meshes, and `triposr` for the fastest throw-away result.",
 "cost": {
  "class": "heavy",
  "notes": "Seconds to tens of seconds per asset on a datacentre GPU; consult the repo for hardware requirements."
 },
 "failure_modes": [
  "Voxel-grid structure stage limits thin surfaces and sub-voxel detail",
  "Mesh decoding from the SLAT can show holes or bumpy surfaces on complex objects",
  "Texture is baked appearance without separate PBR maps",
  "Weak on scenes or multi-object layouts, which are outside the training distribution",
  "Heavy install: custom sparse-convolution and attention backends"
 ],
 "sources": [
  {
   "role": "primary",
   "key": "arxiv:2412.01506",
   "type": "paper",
   "title": "Structured 3D Latents for Scalable and Versatile 3D Generation",
   "authors": [
    "Jianfeng Xiang",
    "Zelong Lv",
    "Sicheng Xu",
    "Yu Deng",
    "Ruicheng Wang",
    "Bowen Zhang",
    "Dong Chen",
    "Xin Tong",
    "Jiaolong Yang"
   ],
   "year": 2024,
   "venue": "arXiv preprint (cs.CV)",
   "url": "https://arxiv.org/abs/2412.01506",
   "ids": {
    "arxiv": "2412.01506"
   },
   "license": null,
   "extra": {
    "arxiv_version": "3",
    "category": "cs.CV"
   },
   "provenance": {
    "title": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2412.01506",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2412.01506",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2412.01506",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2412.01506",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2412.01506",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": 1,
   "__bib": "xiang2024structured"
  },
  {
   "role": "primary",
   "key": "doi:10.1109/cvpr52734.2025.02000",
   "type": "paper",
   "title": "Structured 3D Latents for Scalable and Versatile 3D Generation",
   "authors": [
    "Jianfeng Xiang",
    "Zelong Lv",
    "Sicheng Xu",
    "Yu Deng",
    "Ruicheng Wang",
    "Bowen Zhang",
    "Dong Chen",
    "Xin Tong",
    "Jiaolong Yang"
   ],
   "year": 2025,
   "venue": "2025 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)",
   "url": "https://doi.org/10.1109/cvpr52734.2025.02000",
   "ids": {
    "doi": "10.1109/cvpr52734.2025.02000"
   },
   "license": null,
   "extra": {
    "csl_type": "proceedings-article"
   },
   "provenance": {
    "title": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1109/cvpr52734.2025.02000",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1109/cvpr52734.2025.02000",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1109/cvpr52734.2025.02000",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1109/cvpr52734.2025.02000",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1109/cvpr52734.2025.02000",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": 1,
   "__bib": "xiang2025structured"
  },
  {
   "role": "implementation",
   "key": "gh:microsoft/trellis",
   "type": "code",
   "title": "microsoft/TRELLIS",
   "description": "Official repo for paper \"Structured 3D Latents for Scalable and Versatile 3D Generation\" (CVPR'25 Spotlight).",
   "authors": [
    "microsoft"
   ],
   "year": 2024,
   "venue": "GitHub",
   "url": "https://github.com/microsoft/TRELLIS",
   "ids": {
    "repo": "microsoft/TRELLIS"
   },
   "license": "MIT",
   "extra": {
    "stars": 14427,
    "stars_checked": "2026-11-29",
    "archived": false,
    "fork": false,
    "pushed_at": "2026-10-27T05:03:08Z",
    "language": "Python",
    "homepage": "https://trellis3d.github.io",
    "license_name": "MIT License"
   },
   "provenance": {
    "title": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/microsoft/TRELLIS",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/microsoft/TRELLIS",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/microsoft/TRELLIS",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/microsoft/TRELLIS",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/microsoft/TRELLIS",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "license": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/microsoft/TRELLIS",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": null,
   "__bib": "microsoft2024microsoftb"
  }
 ],
 "presets": [
  {
   "id": "trellis-image-to-3d-defaults",
   "title": "TRELLIS image-to-3D, repo defaults",
   "runtime": "json-params",
   "params": {
    "seed": 1,
    "sparse_structure_sampler_params": {
     "steps": 12,
     "cfg_strength": 7.5
    },
    "slat_sampler_params": {
     "steps": 12,
     "cfg_strength": 3
    },
    "glb_simplify": 0.95,
    "glb_texture_size": 1024
   },
   "basis": "2",
   "license_note": "Values taken from the example script in microsoft/TRELLIS (MIT licence).",
   "execution_fidelity": "parameter-only",
   "proof": {
    "kind": "parameter",
    "label": "parameter preset",
    "ok": true,
    "proof": null
   }
  },
  {
   "id": "trellis-live",
   "title": "TRELLIS (SLAT) — sparse active surface voxel latents (left) vs decoded 3D asset (right)",
   "runtime": "glsl-fragment",
   "params": {
    "P_VOXEL_RES": 12,
    "P_LATENT_GLOW": 0.95,
    "P_ROT_SPEED": 0.58,
    "P_SPLIT": 0.48
   },
   "basis": "original",
   "license_note": "MIT — written for this index.",
   "code": "const float P_VOXEL_RES = 12.0; // P Sparse Grid Res [6.0, 20.0, 1.0]\nconst float P_LATENT_GLOW = 0.95; // P SLAT Feature Glow [0.1, 1.6, 0.05]\nconst float P_ROT_SPEED = 0.58; // P Orbit Speed [0.0, 2.2, 0.05]\nconst float P_SPLIT = 0.48; // P SLAT / Decoded [0.0, 1.0, 0.02]\n\nmat2 rot2(float a) { float c = cos(a), s = sin(a); return mat2(c, -s, s, c); }\n\n// Sculpted intertwined double-arch / knot object\nfloat mapTarget(vec3 q) {\n  float t1 = length(vec2(length(q.xz) - 0.46, q.y)) - 0.20;\n  float t2 = length(vec2(length(q.xy) - 0.46, q.z)) - 0.18;\n  float h = clamp(0.5 + 0.5 * (t2 - t1) / 0.14, 0.0, 1.0);\n  return (mix(t2, t1, h) - 0.14 * h * (1.0 - h)) * 0.85;\n}\n\nvec3 calcNormal(vec3 q) {\n  vec2 e = vec2(0.0025, 0.0);\n  return normalize(vec3(\n    mapTarget(q + e.xyy) - mapTarget(q - e.xyy),\n    mapTarget(q + e.yxy) - mapTarget(q - e.yxy),\n    mapTarget(q + e.yyx) - mapTarget(q - e.yyx)\n  ));\n}\n\n// Sparse voxel box distance around active surface voxels (TRELLIS SLAT)\nfloat mapSparseVoxels(vec3 q, float voxRes, out vec3 cellId) {\n  float s = 1.0 / voxRes;\n  cellId = floor(q * voxRes + 0.5);\n  vec3 vc = cellId * s;\n  float dCenter = mapTarget(vc);\n  if (abs(dCenter) < s * 0.82) {\n    vec3 local = abs(q - vc) - vec3(s * 0.44);\n    return length(max(local, 0.0)) + min(max(local.x, max(local.y, local.z)), 0.0);\n  }\n  return max(abs(dCenter) - s * 0.72, s * 0.35);\n}\n\nvec3 aces(vec3 x) {\n  x = max(x, 0.0);\n  return (x * (2.51 * x + 0.03)) / (x * (2.43 * x + 0.59) + 0.14);\n}\n\nvoid mainImage(out vec4 fragColor, in vec2 fragCoord) {\n  vec2 uv = (fragCoord - 0.5 * iResolution.xy) / iResolution.y;\n  float screenX = fragCoord.x / max(iResolution.x, 1.0);\n  float split = clamp(P_SPLIT, 0.0, 1.0);\n  float voxRes = clamp(floor(P_VOXEL_RES + 0.5), 6.0, 22.0);\n  float glow = clamp(P_LATENT_GLOW, 0.05, 1.8);\n  float spin = iTime * max(P_ROT_SPEED, 0.0) * 0.52;\n\n  vec3 ro = vec3(0.0, 0.16, 2.35);\n  vec3 rd = normalize(vec3(uv - vec2(0.0, 0.03), -1.55));\n  ro.xz = rot2(spin) * ro.xz;\n  rd.xz = rot2(spin) * rd.xz;\n  ro.yz = rot2(0.28) * ro.yz;\n  rd.yz = rot2(0.28) * rd.yz;\n\n  vec3 col = mix(vec3(0.020, 0.028, 0.048), vec3(0.056, 0.076, 0.124), smoothstep(-0.55, 0.55, uv.y));\n  vec3 lDir = normalize(vec3(0.55, 0.82, 0.48));\n\n  if (screenX < split) {\n    // Left: Sparse active 3D voxel shell (SLAT) colored by latent feature embeddings\n    float t = 0.0;\n    bool hit = false;\n    vec3 cid = vec3(0.0);\n    for (int i = 0; i < 64; i++) {\n      float d = mapSparseVoxels(ro + rd * t, voxRes, cid);\n      if (d < 0.003) { hit = true; break; }\n      t += max(d * 0.72, 0.008);\n      if (t > 5.0) break;\n    }\n    if (hit) {\n      vec3 p = ro + rd * t;\n      vec3 vc = cid / voxRes;\n      vec3 local = (p - vc) * voxRes;\n      vec3 an = abs(local);\n      vec3 fn = (an.x > an.y && an.x > an.z) ? vec3(sign(local.x), 0.0, 0.0)\n              : (an.y > an.z ? vec3(0.0, sign(local.y), 0.0) : vec3(0.0, 0.0, sign(local.z)));\n      float diff = max(dot(fn, lDir), 0.0);\n      // Latent feature RGB vector attached to each active voxel\n      vec3 featCol = 0.5 + 0.5 * sin(cid * vec3(0.55, 0.72, 0.48) + vec3(0.0, 2.1, 4.2));\n      float edge = smoothstep(0.36, 0.43, max(an.x, max(an.y, an.z)));\n      col = featCol * (0.32 + 0.75 * diff) * (0.75 + 0.35 * glow) + vec3(0.95) * edge * 0.28;\n    }\n  } else {\n    // Right: Decoded high-resolution smooth 3D PBR asset\n    float t = 0.0;\n    bool hit = false;\n    for (int i = 0; i < 56; i++) {\n      float d = mapTarget(ro + rd * t);\n      if (d < 0.0025) { hit = true; break; }\n      t += d;\n      if (t > 5.0) break;\n    }\n    if (hit) {\n      vec3 p = ro + rd * t;\n      vec3 n = calcNormal(p);\n      float diff = max(dot(n, lDir), 0.0);\n      float spec = pow(max(dot(n, normalize(lDir - rd)), 0.0), 48.0);\n      float fres = pow(1.0 - max(dot(n, -rd), 0.0), 3.0);\n      vec3 alb = mix(vec3(0.14, 0.68, 0.86), vec3(0.96, 0.48, 0.24), smoothstep(-0.45, 0.45, p.y));\n      col = alb * (0.28 + 0.82 * diff) + vec3(1.0, 0.96, 0.90) * spec * 0.52 + vec3(0.28, 0.88, 0.98) * fres * 0.38;\n    }\n  }\n\n  float sep = smoothstep(0.0035, 0.0008, abs(screenX - split));\n  col = mix(col, vec3(0.95, 0.97, 1.0), sep);\n\n  fragColor = vec4(pow(clamp(aces(col), 0.0, 1.0), vec3(1.0 / 2.2)), 1.0);\n}",
   "execution_fidelity": "conceptual-diagram",
   "proof": {
    "kind": "rendered",
    "label": "rendered 2026-11-30",
    "ok": true,
    "proof": {
     "ok": true,
     "technique": "trellis",
     "runtime": "glsl-fragment",
     "checked_at": "2026-11-30T20:35:57.000Z",
     "renderer": "Headless EGL Tesla T4/PCIe/SSE2, OpenGL 3.30 Core, 512×512, iTime=1.5",
     "stats": {
      "mean": 0.5939,
      "std": 0.2595,
      "min": 0.0675,
      "max": 0.9255
     },
     "image": "/specimens/trellis-live.webp",
     "reason": null
    }
   }
  }
 ],
 "related": [
  "trellis-2",
  "hunyuan3d-2",
  "triposr",
  "shap-e"
 ],
 "extends": [],
 "supersedes": [],
 "combines_with": [
  {
   "id": "hunyuan3d-paint",
   "why": "TRELLIS produces a mesh; a separate texturing model can re-paint it with PBR-ready maps."
  }
 ],
 "provenance": {
  "prose": "original text written for this index (research draft, editorially reviewed)",
  "sources_verified_at": "2026-11-29T15:51:27.588Z",
  "draft": "data/drafts/genai/trellis.json"
 },
 "solves": [
  "generate high quality 3d assets from text or image",
  "need output in multiple formats like mesh or gaussians",
  "structured latent for 3d generation",
  "ai 3d models with good geometry and appearance"
 ],
 "authority": "Xiang et al., 2024",
 "url": "https://texelatlas.vercel.app/t/trellis/",
 "execution_fidelity": "conceptual-diagram",
 "fidelity_label": "Visual Diagram",
 "benchmark_eligible": false,
 "gpu_weight": {
  "weight_x": 11.84,
  "tier": "moderate",
  "p50_ms": 0.3896,
  "p95_ms": 0.4209,
  "baseline_p50_ms": 0.0329,
  "gpu": "Tesla T4/PCIe/SSE2",
  "resolution": "1920x1080",
  "method": "opengl-timer-query",
  "frames": 32,
  "preset_id": "trellis-live",
  "execution_fidelity": "conceptual-diagram",
  "fidelity_label": "Visual Diagram",
  "benchmark_eligible": false,
  "generated_at": "2026-11-30T21:07:47Z",
  "l4": {
   "weight_x": 9.57,
   "tier": "moderate",
   "p50_ms": 0.1521,
   "p95_ms": 0.1616,
   "speedup_x": 2.56,
   "gpu": "NVIDIA L4/PCIe/SSE2",
   "resolution": "1920x1080",
   "baseline_p50_ms": 0.0159
  },
  "a100": {
   "weight_x": 7.38,
   "tier": "moderate",
   "p50_ms": 0.2125,
   "p95_ms": 0.2272,
   "speedup_x": 1.83,
   "gpu": "NVIDIA A100-SXM4-40GB/PCIe/SSE2",
   "resolution": "1920x1080",
   "baseline_p50_ms": 0.0288
  }
 }
}