{
 "id": "meshgpt",
 "title": "MeshGPT",
 "aliases": [],
 "domain": "genai",
 "subdomain": "autoregressive artist-like meshes",
 "stage": "generation",
 "realtime": "interactive",
 "platforms": [
  "cuda",
  "python"
 ],
 "year_introduced": 2023,
 "inputs": [
  "mesh"
 ],
 "outputs": [
  "mesh"
 ],
 "style": "both",
 "dynamic": "static",
 "summary": "Learns a vocabulary of triangle tokens with a graph-convolutional encoder and vector quantisation, then trains a decoder-only transformer to emit meshes triangle by triangle.",
 "how_it_works": "Each triangle in a training mesh is described by its vertices and local geometry, encoded by a graph convolution over the mesh, and quantised into a discrete codebook index (residual vector quantisation). A mesh therefore becomes a sequence of triangle tokens in a canonical order, and a GPT-style transformer is trained to predict the next token. Sampling produces a sequence that is decoded back into triangles. Because meshes are generated natively as compact, sharp-edged triangle sets rather than extracted from a field, results look like artist-made meshes, with large flat faces and coarse triangle counts, unlike iso-surface output.",
 "when_to_use": "Choose it to study or reproduce token-based mesh generation, or for unconditional/class-conditioned low-poly assets. Prefer `meshanything` when you need conditioning on a dense shape or point cloud, `meshflow` for parallel generation with continuous latents, and `hunyuan3d-2` or `trellis` when the target is a high-detail textured scan-like asset.",
 "cost": {
  "class": "heavy",
  "notes": "Autoregressive: time grows with triangle count; qualitative."
 },
 "failure_modes": [
  "Errors in a long token sequence give holes, flipped or overlapping triangles",
  "Quantisation limits vertex precision",
  "Limited face counts per mesh (hundreds to a few thousand triangles)",
  "Official release code is research-grade; the popular community reimplementation differs from the paper in details"
 ],
 "sources": [
  {
   "role": "primary",
   "key": "arxiv:2311.15475",
   "type": "paper",
   "title": "MeshGPT: Generating Triangle Meshes with Decoder-Only Transformers",
   "authors": [
    "Yawar Siddiqui",
    "Antonio Alliegro",
    "Alexey Artemov",
    "Tatiana Tommasi",
    "Daniele Sirigatti",
    "Vladislav Rosov",
    "Angela Dai",
    "Matthias Nießner"
   ],
   "year": 2023,
   "venue": "arXiv preprint (cs.CV)",
   "url": "https://arxiv.org/abs/2311.15475",
   "ids": {
    "arxiv": "2311.15475"
   },
   "license": null,
   "extra": {
    "arxiv_version": "1",
    "category": "cs.CV"
   },
   "provenance": {
    "title": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2311.15475",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2311.15475",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2311.15475",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2311.15475",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2311.15475",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": 1,
   "__bib": "siddiqui2023meshgpt"
  },
  {
   "role": "primary",
   "key": "doi:10.1109/cvpr52733.2024.01855",
   "type": "paper",
   "title": "MeshGPT: Generating Triangle Meshes with Decoder-Only Transformers",
   "authors": [
    "Yawar Siddiqui",
    "Antonio Alliegro",
    "Alexey Artemov",
    "Tatiana Tommasi",
    "Daniele Sirigatti",
    "Vladislav Rosov",
    "Angela Dai",
    "Matthias Nießner"
   ],
   "year": 2024,
   "venue": "2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)",
   "url": "https://doi.org/10.1109/cvpr52733.2024.01855",
   "ids": {
    "doi": "10.1109/cvpr52733.2024.01855"
   },
   "license": null,
   "extra": {
    "csl_type": "proceedings-article"
   },
   "provenance": {
    "title": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1109/cvpr52733.2024.01855",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1109/cvpr52733.2024.01855",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1109/cvpr52733.2024.01855",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1109/cvpr52733.2024.01855",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1109/cvpr52733.2024.01855",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": 1,
   "__bib": "siddiqui2024meshgpt"
  },
  {
   "role": "implementation",
   "key": "gh:lucidrains/meshgpt-pytorch",
   "type": "code",
   "title": "lucidrains/meshgpt-pytorch",
   "description": "Implementation of MeshGPT, SOTA Mesh generation using Attention, in Pytorch",
   "authors": [
    "lucidrains"
   ],
   "year": 2023,
   "venue": "GitHub",
   "url": "https://github.com/lucidrains/meshgpt-pytorch",
   "ids": {
    "repo": "lucidrains/meshgpt-pytorch"
   },
   "license": "MIT",
   "extra": {
    "stars": 862,
    "stars_checked": "2026-11-29",
    "archived": false,
    "fork": false,
    "pushed_at": "2024-12-24T01:02:01Z",
    "language": "Python",
    "homepage": null,
    "license_name": "MIT License"
   },
   "provenance": {
    "title": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/lucidrains/meshgpt-pytorch",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/lucidrains/meshgpt-pytorch",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/lucidrains/meshgpt-pytorch",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/lucidrains/meshgpt-pytorch",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/lucidrains/meshgpt-pytorch",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "license": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/lucidrains/meshgpt-pytorch",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": null,
   "__bib": "lucidrains2023lucidrains"
  }
 ],
 "presets": [
  {
   "id": "meshgpt-live",
   "title": "MeshGPT — autoregressive triangle-token decoding (left) vs completed faceted mesh (right)",
   "runtime": "glsl-fragment",
   "params": {
    "P_SEQ_PROG": 0.72,
    "P_TRI_RES": 10,
    "P_ROT_SPEED": 0.58,
    "P_SPLIT": 0.48
   },
   "basis": "original",
   "license_note": "MIT — written for this index.",
   "code": "const float P_SEQ_PROG = 0.72; // P Token Progress [0.15, 1.0, 0.02]\nconst float P_TRI_RES = 10.0; // P Triangle Scale [5.0, 16.0, 0.5]\nconst float P_ROT_SPEED = 0.58; // P Orbit Speed [0.0, 2.2, 0.05]\nconst float P_SPLIT = 0.48; // P Tokens / Mesh Split [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\nvec3 hash31(float x) {\n  vec3 p = fract(vec3(x) * vec3(0.1031, 0.1030, 0.0973));\n  p += dot(p, p.yzx + 33.33);\n  return fract((p.xxy + p.yzz) * p.zyx);\n}\n\n// Sculpted architectural chair/bust polyhedron\nfloat mapObj(vec3 p, float spin) {\n  vec3 q = p;\n  q.xz = rot2(spin * 0.45) * q.xz;\n  q.yz = rot2(0.24) * q.yz;\n  float r = length(q);\n  vec3 d = q / max(r, 1e-4);\n  float shape = 0.68 + 0.12 * cos(d.y * 4.5) + 0.08 * sin(atan(d.z, d.x) * 4.0) * (1.0 - abs(d.y));\n  return (r - shape) * 0.82;\n}\n\nvec3 calcNormal(vec3 p, float spin) {\n  vec2 e = vec2(0.0025, 0.0);\n  return normalize(vec3(\n    mapObj(p + e.xyy, spin) - mapObj(p - e.xyy, spin),\n    mapObj(p + e.yxy, spin) - mapObj(p - e.yxy, spin),\n    mapObj(p + e.yyx, spin) - mapObj(p - e.yyx, spin)\n  ));\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 prog = clamp(P_SEQ_PROG, 0.1, 1.0);\n  float triRes = clamp(P_TRI_RES, 4.0, 18.0);\n  float spin = iTime * max(P_ROT_SPEED, 0.0);\n\n  vec3 ro = vec3(0.0, 0.10, 2.30);\n  vec3 rd = normalize(vec3(uv, -1.55));\n  vec3 bg = mix(vec3(0.022, 0.028, 0.048), vec3(0.058, 0.072, 0.118), smoothstep(-0.55, 0.55, uv.y));\n  vec3 col = bg;\n\n  float t = 0.0;\n  bool hit = false;\n  for (int i = 0; i < 56; i++) {\n    float d = mapObj(ro + rd * t, spin);\n    if (d < 0.0025) { hit = true; break; }\n    t += d;\n    if (t > 5.0) break;\n  }\n\n  if (hit) {\n    vec3 p = ro + rd * t;\n    vec3 n = calcNormal(p, spin);\n    vec3 objP = p;\n    objP.xz = rot2(spin * 0.45) * objP.xz;\n    objP.yz = rot2(0.24) * objP.yz;\n\n    // Quantized spherical triangle-grid tokenization (VQ-VAE triangle codebook)\n    vec3 dn = normalize(objP + vec3(1e-5));\n    vec2 sp = vec2(atan(dn.z, dn.x) / 3.14159265, asin(clamp(dn.y, -0.999, 0.999)) / 1.5707963);\n    vec2 g = sp * vec2(triRes * 1.8, triRes);\n    vec2 cell = floor(g);\n    vec2 f = fract(g);\n    float upper = step(f.x, f.y);\n    vec3 bary = (upper > 0.5) ? vec3(1.0 - f.y, f.x, f.y - f.x) : vec3(1.0 - f.x, f.y, f.x - f.y);\n    float edgeD = min(bary.x, min(bary.y, bary.z));\n    float wire = smoothstep(0.065, 0.015, edgeD);\n\n    // Flat-shaded quantized facet normal\n    vec2 cUV = (cell + ((upper > 0.5) ? vec2(0.33, 0.67) : vec2(0.67, 0.33))) / vec2(triRes * 1.8, triRes);\n    float phi = cUV.x * 3.14159265;\n    float th = cUV.y * 1.5707963;\n    vec3 flatObjN = normalize(vec3(cos(th) * cos(phi), sin(th), cos(th) * sin(phi)));\n    vec3 flatN = flatObjN;\n    flatN.yz = rot2(-0.24) * flatN.yz;\n    flatN.xz = rot2(-spin * 0.45) * flatN.xz;\n    flatN = normalize(mix(n, flatN, 0.68));\n\n    // Autoregressive bottom-to-top triangle token sequence order\n    float seqOrder = clamp((cUV.y + 1.0) * 0.5 + (cUV.x + 1.0) * 0.04, 0.0, 1.0);\n    float waveFront = mod(prog + 0.22 * sin(iTime * 0.75), 1.02);\n    float tokId = cell.y * 37.0 + cell.x * 2.0 + upper;\n    vec3 tokCol = 0.32 + 0.58 * hash31(tokId);\n\n    vec3 l1 = normalize(vec3(0.58, 0.80, 0.55));\n    float diff = max(dot(flatN, l1), 0.0);\n    float spec = pow(max(dot(flatN, normalize(l1 - rd)), 0.0), 32.0);\n\n    if (screenX < split) {\n      // Left: Autoregressive token sequence construction with glowing active-token frontier\n      float generated = smoothstep(waveFront + 0.03, waveFront - 0.02, seqOrder);\n      float frontier = exp(-abs(seqOrder - waveFront) * 38.0);\n      vec3 activeFace = tokCol * (0.35 + 0.75 * diff) + vec3(1.0, 0.86, 0.35) * frontier * 1.4;\n      activeFace = mix(activeFace, vec3(0.95, 0.98, 1.0), wire * 0.55);\n      // Un-generated future triangles shown as faint ghost wireframe\n      vec3 ghost = bg + vec3(0.14, 0.34, 0.52) * wire * 0.55;\n      col = mix(ghost, activeFace, generated);\n    } else {\n      // Right: Completed clean artist-like MeshGPT triangle mesh\n      vec3 base = vec3(0.76, 0.80, 0.88) * (0.28 + 0.82 * diff) + vec3(1.0) * spec * 0.38;\n      col = mix(base, vec3(0.10, 0.24, 0.42), wire * 0.68);\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": "meshgpt",
     "runtime": "glsl-fragment",
     "checked_at": "2026-11-30T20:35:52.000Z",
     "renderer": "Headless EGL Tesla T4/PCIe/SSE2, OpenGL 3.30 Core, 512×512, iTime=1.5",
     "stats": {
      "mean": 0.6015,
      "std": 0.2586,
      "min": 0.1612,
      "max": 0.921
     },
     "image": "/specimens/meshgpt-live.webp",
     "reason": null
    }
   }
  }
 ],
 "related": [
  "meshanything",
  "meshflow"
 ],
 "extends": [],
 "supersedes": [],
 "combines_with": [],
 "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/meshgpt.json"
 },
 "solves": [
  "want generated meshes with clean artist-like triangles",
  "need to learn mesh generation as token sequences",
  "unconditional low-poly asset generation",
  "marching-cubes style outputs are too dense and messy"
 ],
 "authority": "Siddiqui et al., 2023",
 "url": "https://texelatlas.vercel.app/t/meshgpt/",
 "execution_fidelity": "conceptual-diagram",
 "fidelity_label": "Visual Diagram",
 "benchmark_eligible": false,
 "gpu_weight": {
  "weight_x": 20.73,
  "tier": "heavy",
  "p50_ms": 0.6821,
  "p95_ms": 0.7068,
  "baseline_p50_ms": 0.0329,
  "gpu": "Tesla T4/PCIe/SSE2",
  "resolution": "1920x1080",
  "method": "opengl-timer-query",
  "frames": 32,
  "preset_id": "meshgpt-live",
  "execution_fidelity": "conceptual-diagram",
  "fidelity_label": "Visual Diagram",
  "benchmark_eligible": false,
  "generated_at": "2026-11-30T21:07:47Z",
  "l4": {
   "weight_x": 16.81,
   "tier": "moderate",
   "p50_ms": 0.2672,
   "p95_ms": 0.2754,
   "speedup_x": 2.55,
   "gpu": "NVIDIA L4/PCIe/SSE2",
   "resolution": "1920x1080",
   "baseline_p50_ms": 0.0159
  },
  "a100": {
   "weight_x": 12.9,
   "tier": "moderate",
   "p50_ms": 0.3716,
   "p95_ms": 0.3855,
   "speedup_x": 1.84,
   "gpu": "NVIDIA A100-SXM4-40GB/PCIe/SSE2",
   "resolution": "1920x1080",
   "baseline_p50_ms": 0.0288
  }
 }
}