{
 "id": "infinigen",
 "title": "Infinigen (Procedural Photorealistic Worlds)",
 "aliases": [
  "Infinigen Nature"
 ],
 "domain": "procgen",
 "subdomain": "scene generation",
 "stage": "procedural",
 "realtime": "offline",
 "platforms": [
  "blender",
  "python",
  "cpu",
  "cuda"
 ],
 "year_introduced": 2023,
 "inputs": [],
 "outputs": [
  "mesh",
  "material-params",
  "texture",
  "layout"
 ],
 "style": "photoreal",
 "dynamic": "static",
 "summary": "A Blender-based procedural generator of natural scenes: terrain, plants, creatures and materials all come from random parametric programs, with ground-truth geometry labels for training vision models.",
 "how_it_works": "Every asset is a program with parameters sampled from priors: terrain from SDF-based elements with erosion and tectonic features, trees and plants via grammar-based branching, creatures from skeleton-and-skin templates, materials as shader node graphs with noise-based textures. A scene composer places assets according to ecological and spatial constraints (terrain slope, water, density), then Blender renders with Cycles. Because the whole scene is generated from code, exact depth, normals, segmentation, flow and occlusion edges are produced without annotation. Level of detail is controlled by distance from camera so only visible detail is generated. The code is open source (BSD-3-Clause).",
 "when_to_use": "Choose it for synthetic training data and for hero-quality natural scenes you can script and reproduce from a seed. Prefer `ecosystem-plant-distribution` and the individual terrain and plant techniques for engine-integrated runtime generation, and learned generators in the genai domain when you want text-conditioned results rather than rules.",
 "cost": {
  "class": "offline",
  "notes": "Cycles rendering and heavy asset generation: minutes to hours per scene depending on resolution and detail."
 },
 "failure_modes": [
  "Blender and Python dependency stack is heavy; builds break across versions or platforms",
  "Asset diversity is limited to the shipped generators (natural scenes), so urban or interior content needs the Indoors extension",
  "Scene composition is rule-based, so structural realism (e.g. consistent ecology) can fail in corner cases",
  "Generation time is high; tuning a scene means re-running long jobs"
 ],
 "sources": [
  {
   "role": "primary",
   "key": "doi:10.1109/cvpr52729.2023.01215",
   "type": "paper",
   "title": "Infinite Photorealistic Worlds Using Procedural Generation",
   "authors": [
    "Alexander Raistrick",
    "Lahav Lipson",
    "Zeyu Ma",
    "Lingjie Mei",
    "Mingzhe Wang",
    "Yiming Zuo",
    "Karhan Kayan",
    "Hongyu Wen",
    "Beining Han",
    "Yihan Wang",
    "Alejandro Newell",
    "Hei Law",
    "Ankit Goyal",
    "Kaiyu Yang",
    "Jia Deng"
   ],
   "year": 2023,
   "venue": "2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)",
   "url": "https://doi.org/10.1109/cvpr52729.2023.01215",
   "ids": {
    "doi": "10.1109/cvpr52729.2023.01215"
   },
   "license": null,
   "extra": {
    "csl_type": "proceedings-article"
   },
   "provenance": {
    "title": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1109/cvpr52729.2023.01215",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1109/cvpr52729.2023.01215",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1109/cvpr52729.2023.01215",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1109/cvpr52729.2023.01215",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1109/cvpr52729.2023.01215",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": 1,
   "__bib": "raistrick2023infinite"
  },
  {
   "role": "implementation",
   "key": "gh:princeton-vl/infinigen",
   "type": "code",
   "title": "princeton-vl/infinigen",
   "description": "Infinite Photorealistic Worlds using Procedural Generation",
   "authors": [
    "princeton-vl"
   ],
   "year": 2023,
   "venue": "GitHub",
   "url": "https://github.com/princeton-vl/infinigen",
   "ids": {
    "repo": "princeton-vl/infinigen"
   },
   "license": "BSD-3-Clause",
   "extra": {
    "stars": 7489,
    "stars_checked": "2026-11-29",
    "archived": false,
    "fork": false,
    "pushed_at": "2026-11-11T13:49:30Z",
    "language": "Python",
    "homepage": "https://infinigen.org",
    "license_name": "BSD 3-Clause \"New\" or \"Revised\" License"
   },
   "provenance": {
    "title": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/princeton-vl/infinigen",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/princeton-vl/infinigen",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/princeton-vl/infinigen",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/princeton-vl/infinigen",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/princeton-vl/infinigen",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "license": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/princeton-vl/infinigen",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": null,
   "__bib": "princetonvl2023princeton"
  }
 ],
 "presets": [
  {
   "id": "infinigen-live",
   "title": "Infinigen — ground-truth semantic & surface-normal labels (left) vs procedural photoreal alpine terrain (right)",
   "runtime": "glsl-fragment",
   "params": {
    "P_TERRAIN_SEED": 1.4,
    "P_RIVER_CARVE": 0.75,
    "P_SUN_AZIMUTH": 0.52,
    "P_SPLIT": 0.48
   },
   "basis": "original",
   "license_note": "MIT — written for this index.",
   "code": "const float P_TERRAIN_SEED = 1.40; // P World Seed [0.0, 6.0, 0.2]\nconst float P_RIVER_CARVE = 0.75; // P Valley Carve [0.2, 1.4, 0.05]\nconst float P_SUN_AZIMUTH = 0.52; // P Sun Azimuth [0.0, 2.0, 0.05]\nconst float P_SPLIT = 0.48; // P Labels / World Split [0.0, 1.0, 0.02]\n\nfloat hash21(vec2 p) {\n  p = fract(p * vec2(127.1, 311.7));\n  p += dot(p, p + 34.5);\n  return fract(p.x * p.y);\n}\n\nfloat vnoise(vec2 p) {\n  vec2 i = floor(p);\n  vec2 f = fract(p);\n  f = f * f * (3.0 - 2.0 * f);\n  return mix(\n    mix(hash21(i), hash21(i + vec2(1.0, 0.0)), f.x),\n    mix(hash21(i + vec2(0.0, 1.0)), hash21(i + vec2(1.0, 1.0)), f.x),\n    f.y\n  );\n}\n\nfloat fbm(vec2 p) {\n  float s = 0.0, a = 0.5;\n  mat2 m = mat2(0.80, -0.60, 0.60, 0.80);\n  for (int i = 0; i < 5; i++) {\n    s += a * vnoise(p);\n    p = m * p * 2.04;\n    a *= 0.5;\n  }\n  return s;\n}\n\n// Procedural alpine valley terrain heightfield with carved winding river & rocky ridges\nfloat evalTerrain(vec2 xz, float seed, float carve) {\n  vec2 q = xz * 0.34 + vec2(seed * 1.7, seed * 0.9);\n  float ridge = 1.0 - abs(fbm(q) * 2.0 - 1.0);\n  float base = fbm(q * 1.45 + 3.1) * 1.15 + ridge * ridge * 1.25;\n  // Meandering glacial river channel along z\n  float riverX = 0.72 * sin(xz.y * 0.35 + seed) + 0.25 * cos(xz.y * 0.85);\n  float dRiv = abs(xz.x - riverX);\n  float valley = smoothstep(0.18, 2.25, dRiv);\n  float h = base * mix(0.22, 1.48, pow(valley, 0.85)) - (1.0 - valley) * 0.45 * carve;\n  // Subtle procedural pine-tree cluster bumps on mid-elevation forested slopes\n  float forestBand = smoothstep(0.14, 0.32, h) * smoothstep(0.95, 0.58, h);\n  float trees = smoothstep(0.45, 0.78, vnoise(xz * 5.8 + seed)) * 0.14 * forestBand;\n  return h + trees;\n}\n\nvec3 calcTerrainNormal(vec2 xz, float seed, float carve) {\n  float e = 0.035;\n  float hL = evalTerrain(xz - vec2(e, 0.0), seed, carve);\n  float hR = evalTerrain(xz + vec2(e, 0.0), seed, carve);\n  float hD = evalTerrain(xz - vec2(0.0, e), seed, carve);\n  float hU = evalTerrain(xz + vec2(0.0, e), seed, carve);\n  return normalize(vec3(hL - hR, 2.0 * e, hD - hU));\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 sx = fragCoord.x / max(iResolution.x, 1.0);\n  float split = clamp(P_SPLIT, 0.0, 1.0);\n  bool showPhoto = sx >= split;\n\n  float seed = clamp(P_TERRAIN_SEED, 0.0, 8.0);\n  float carve = clamp(P_RIVER_CARVE, 0.1, 1.6);\n  float sunAz = clamp(P_SUN_AZIMUTH, 0.0, 2.5) + iTime * 0.14;\n\n  vec3 ro = vec3(0.45 * sin(iTime * 0.18), 1.45, 3.6 - iTime * 0.25);\n  vec3 ta = ro + vec3(-0.25 * sin(iTime * 0.18), -0.45, -2.5);\n  vec3 fw = normalize(ta - ro);\n  vec3 ri = normalize(cross(fw, vec3(0.0, 1.0, 0.0)));\n  vec3 up = cross(ri, fw);\n  vec3 rd = normalize(fw * 1.45 + ri * uv.x + up * uv.y);\n\n  vec3 sunDir = normalize(vec3(cos(sunAz) * 0.78, 0.48, sin(sunAz) * 0.55 - 0.45));\n  vec3 sky = mix(vec3(0.76, 0.84, 0.94), vec3(0.16, 0.36, 0.72), smoothstep(-0.05, 0.55, rd.y));\n  sky += vec3(1.8, 1.4, 0.9) * pow(max(dot(rd, sunDir), 0.0), 42.0);\n  vec3 col = showPhoto ? sky : vec3(0.14, 0.36, 0.78); // Sky semantic class ID on left\n\n  float waterLevel = 0.08;\n  float t = 0.12;\n  bool hit = false;\n  for (int i = 0; i < 72; i++) {\n    vec3 p = ro + rd * t;\n    float h = max(evalTerrain(p.xz, seed, carve), waterLevel);\n    float d = p.y - h;\n    if (d < 0.008 * t) { hit = true; break; }\n    t += max(d * 0.55, 0.035);\n    if (t > 24.0) break;\n  }\n\n  if (hit) {\n    vec3 p = ro + rd * t;\n    float th = evalTerrain(p.xz, seed, carve);\n    bool isWater = th <= waterLevel + 0.01;\n    vec3 n = isWater ? normalize(vec3(0.04 * sin(p.x * 12.0 + iTime * 2.0), 1.0, 0.04 * cos(p.z * 12.0 - iTime * 1.8)))\n                     : calcTerrainNormal(p.xz, seed, carve);\n\n    // Procedural biome semantic classification: 0=Water, 1=Pine Forest, 2=Alpine Rock, 3=Snow Peak\n    float slope = 1.0 - n.y;\n    float snowMask = smoothstep(0.92, 1.18, p.y - slope * 0.45);\n    float rockMask = smoothstep(0.24, 0.46, slope);\n    float forestMask = smoothstep(0.14, 0.30, p.y) * smoothstep(0.95, 0.62, p.y) * (1.0 - rockMask);\n\n    if (!showPhoto) {\n      // Left: Infinigen ground-truth semantic segmentation + depth contours & crisp class boundaries\n      vec3 semCol = vec3(0.10, 0.65, 0.88); // water class\n      if (!isWater) {\n        if (snowMask > 0.5) semCol = vec3(0.92, 0.94, 0.98); // snow class\n        else if (rockMask > 0.45) semCol = vec3(0.68, 0.42, 0.24); // cliff rock class\n        else if (forestMask > 0.35) semCol = vec3(0.18, 0.78, 0.32); // evergreen vegetation class\n        else semCol = vec3(0.76, 0.72, 0.26); // meadow/shore class\n      }\n      // Overlay subtle ground-truth surface-normal tint & depth iso-lines\n      float depthIso = smoothstep(0.08, 0.02, abs(fract(t * 0.65) - 0.5));\n      col = mix(semCol * (0.65 + 0.35 * (n.y * 0.5 + 0.5)), n * 0.5 + 0.5, 0.22);\n      col = mix(col, vec3(0.04, 0.05, 0.08), depthIso * 0.35);\n    } else {\n      // Right: Full photorealistic procedural alpine world with crisp sun shadows & aerial perspective\n      float sh = 1.0;\n      float st = 0.08;\n      for (int s = 0; s < 16; s++) {\n        vec3 sp = p + sunDir * st;\n        float shH = evalTerrain(sp.xz, seed, carve);\n        if (sp.y < shH) { sh = 0.0; break; }\n        st += max((sp.y - shH) * 0.65, 0.09);\n        if (st > 6.0) break;\n      }\n\n      vec3 alb;\n      if (isWater) {\n        vec3 refl = reflect(rd, n);\n        float fres = 0.08 + 0.85 * pow(1.0 - max(dot(n, -rd), 0.0), 4.0);\n        vec3 waterBody = vec3(0.04, 0.20, 0.28);\n        vec3 reflSky = mix(vec3(0.45, 0.62, 0.82), vec3(0.95, 0.86, 0.72), pow(max(dot(refl, sunDir), 0.0), 12.0));\n        col = mix(waterBody, reflSky, fres) + vec3(1.5, 1.3, 1.0) * pow(max(dot(refl, sunDir), 0.0), 96.0) * sh;\n      } else {\n        float strata = 0.82 + 0.18 * sin(p.y * 24.0 + fbm(p.xz * 3.0) * 4.0);\n        vec3 meadow = vec3(0.24, 0.36, 0.16);\n        vec3 pine = vec3(0.08, 0.22, 0.10);\n        vec3 rock = vec3(0.36, 0.34, 0.32) * strata;\n        vec3 snow = vec3(0.90, 0.93, 0.97);\n        alb = mix(meadow, pine, forestMask);\n        alb = mix(alb, rock, rockMask);\n        alb = mix(alb, snow, snowMask);\n        float ndl = max(dot(n, sunDir), 0.0);\n        vec3 skyAmb = mix(vec3(0.14, 0.18, 0.24), vec3(0.34, 0.48, 0.72), 0.5 + 0.5 * n.y);\n        col = alb * (vec3(1.55, 1.38, 1.12) * ndl * sh + skyAmb * 0.52);\n      }\n\n      // Exponential aerial perspective haze\n      float fog = 1.0 - exp(-t * 0.068);\n      col = mix(col, sky, clamp(fog, 0.0, 0.92));\n    }\n  }\n\n  float sep = smoothstep(0.0035, 0.0008, abs(sx - split));\n  col = mix(col, vec3(0.95, 0.97, 1.0), sep);\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": "infinigen",
     "runtime": "glsl-fragment",
     "checked_at": "2026-11-30T21:07:12.000Z",
     "renderer": "Headless EGL Tesla T4/PCIe/SSE2, OpenGL 3.30 Core, 512×512, iTime=1.5",
     "stats": {
      "mean": 0.7839,
      "std": 0.0613,
      "min": 0.5388,
      "max": 0.9179
     },
     "image": "/specimens/infinigen-live.webp",
     "reason": null
    }
   }
  }
 ],
 "related": [
  "ecosystem-plant-distribution",
  "l-systems",
  "fractal-brownian-motion",
  "hydraulic-erosion-stava",
  "map-elites"
 ],
 "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/procgen/infinigen.json"
 },
 "solves": [
  "need endless varied natural scenes for training data",
  "generate terrain, plants and creatures procedurally in blender",
  "want reproducible photoreal worlds from a seed",
  "synthetic dataset with ground-truth geometry labels",
  "hand-modelling natural environments takes too long"
 ],
 "authority": "Raistrick et al., 2023",
 "url": "https://texelatlas.vercel.app/t/infinigen/",
 "execution_fidelity": "conceptual-diagram",
 "fidelity_label": "Visual Diagram",
 "benchmark_eligible": false,
 "gpu_weight": {
  "weight_x": 303.7,
  "tier": "extreme",
  "p50_ms": 9.9916,
  "p95_ms": 10.1357,
  "baseline_p50_ms": 0.0329,
  "gpu": "Tesla T4/PCIe/SSE2",
  "resolution": "1920x1080",
  "method": "opengl-timer-query",
  "frames": 32,
  "preset_id": "infinigen-live",
  "execution_fidelity": "conceptual-diagram",
  "fidelity_label": "Visual Diagram",
  "benchmark_eligible": false,
  "generated_at": "2026-11-30T21:07:47Z",
  "l4": {
   "weight_x": 295.96,
   "tier": "extreme",
   "p50_ms": 4.7058,
   "p95_ms": 4.7623,
   "speedup_x": 2.12,
   "gpu": "NVIDIA L4/PCIe/SSE2",
   "resolution": "1920x1080",
   "baseline_p50_ms": 0.0159
  },
  "a100": {
   "weight_x": 236.91,
   "tier": "extreme",
   "p50_ms": 6.8229,
   "p95_ms": 6.9144,
   "speedup_x": 1.46,
   "gpu": "NVIDIA A100-SXM4-40GB/PCIe/SSE2",
   "resolution": "1920x1080",
   "baseline_p50_ms": 0.0288
  }
 }
}