{
 "id": "xatlas",
 "title": "xatlas",
 "aliases": [],
 "domain": "geometry",
 "subdomain": "UV parameterization",
 "stage": "geometry",
 "realtime": "offline",
 "platforms": [
  "cpu",
  "blender",
  "unity",
  "unreal",
  "webgl2"
 ],
 "year_introduced": 2018,
 "inputs": [
  "mesh"
 ],
 "outputs": [
  "uv-atlas"
 ],
 "style": "both",
 "dynamic": "static",
 "summary": "A small C++ library that segments a triangle mesh into charts, parameterizes each, and packs them into a lightmap atlas without user seams. Widely used for automatic lightmap UVs.",
 "how_it_works": "The mesh is first split into charts by growing regions from seed triangles while checking normal deviation, roundness and the cost of the shared boundary, and merging when beneficial. Each chart is flattened by a least-squares conformal or similar projection, with iterative fixes for overlap and flip. Then the charts are packed using a rasterised approach: each chart is rendered into a bitmap, and a brute-force or block-based placer finds a position and rotation that fits with a chosen padding. The pack is repeated to find a resolution or texel density. The API can return a remapped vertex list so you can keep the original vertex data, and it supports multi-mesh atlases and a user-supplied UV set for reuse.",
 "when_to_use": "Choose it to generate secondary UVs for baked lightmaps, AO or probe textures on arbitrary meshes in an engine or tool. Prefer `lscm-uv-unwrapping` on a single artist-seamed chart, `geometry-images` for single-chart remeshing, and an artist-made UV when texture painting quality matters.",
 "cost": {
  "class": "offline",
  "notes": "Seconds for hundreds of thousands of triangles; packing resolution dominates."
 },
 "failure_modes": [
  "Many small charts and seams produce visible lighting or filtering seams when sampled with bilinear texels",
  "Charts of very different stretch cause uneven texel density",
  "Rejects or produces overlapping charts for non-manifold or degenerate input",
  "Packing efficiency depends on resolution; low settings waste space"
 ],
 "sources": [
  {
   "role": "primary",
   "key": "gh:jpcy/xatlas",
   "type": "code",
   "title": "jpcy/xatlas",
   "description": "Mesh parameterization / UV unwrapping library",
   "authors": [
    "jpcy"
   ],
   "year": 2018,
   "venue": "GitHub",
   "url": "https://github.com/jpcy/xatlas",
   "ids": {
    "repo": "jpcy/xatlas"
   },
   "license": "MIT",
   "extra": {
    "stars": 2633,
    "stars_checked": "2026-11-29",
    "archived": false,
    "fork": false,
    "pushed_at": "2024-06-16T22:20:33Z",
    "language": "C++",
    "homepage": null,
    "license_name": "MIT License"
   },
   "provenance": {
    "title": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/jpcy/xatlas",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/jpcy/xatlas",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/jpcy/xatlas",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/jpcy/xatlas",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/jpcy/xatlas",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "license": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/jpcy/xatlas",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": null,
   "__bib": "jpcy2018jpcy"
  }
 ],
 "presets": [],
 "related": [
  "lscm-uv-unwrapping",
  "geometry-images"
 ],
 "extends": [],
 "supersedes": [],
 "combines_with": [
  {
   "id": "lscm-uv-unwrapping",
   "why": "LSCM is the typical per-chart flattening step inside atlas builders."
  }
 ],
 "provenance": {
  "prose": "original text written for this index (research draft, editorially reviewed)",
  "sources_verified_at": "2026-11-29T15:51:27.588Z",
  "draft": "data/drafts/geometry/xatlas.json"
 },
 "solves": [
  "need lightmap uvs for an arbitrary mesh",
  "automatic unwrapping without manual seams",
  "baked ao or probe textures need packed charts",
  "meshes have no secondary uv set for lightmaps"
 ],
 "authority": "jpcy, 2018",
 "url": "https://texelatlas.vercel.app/t/xatlas/",
 "execution_fidelity": "none",
 "fidelity_label": "No Live Specimen",
 "benchmark_eligible": false
}