{
 "id": "particle-systems",
 "title": "Particle systems",
 "aliases": [
  "particle effects",
  "sprite particles",
  "fuzzy objects"
 ],
 "domain": "simulation",
 "subdomain": "particles & VFX",
 "stage": "simulation",
 "realtime": "realtime",
 "platforms": [
  "webgl2",
  "webgpu",
  "desktop-gpu",
  "cpu",
  "mobile-gpu",
  "unity",
  "unreal",
  "godot",
  "blender",
  "houdini"
 ],
 "year_introduced": 1983,
 "inputs": [
  "particles"
 ],
 "outputs": [
  "particles"
 ],
 "style": "both",
 "dynamic": "dynamic",
 "summary": "Model fire, smoke, sparks and rain as many small independent points that are emitted, aged, moved by forces and rendered as sprites, instead of as one surface.",
 "how_it_works": "A particle system is an emitter plus a population. Each frame the emitter spawns new particles with randomised position, velocity, lifetime, size and colour drawn from distributions. Every live particle then advances: velocity is updated from forces such as gravity, drag and wind, position is integrated (usually explicit or semi-implicit Euler), and age increases. Properties like size, opacity and colour are read from curves over normalised age, so a spark can start white and hot and end as a dim ember. Particles older than their lifetime are recycled. Rendering turns each particle into a camera-facing quad or a ribbon, blended additively for glows or alpha-blended for smoke, and sorted back to front when order matters. The original formulation also allowed child systems and stochastic variation of every parameter, which is why the same machinery still drives most game VFX graphs.",
 "when_to_use": "Choose it for fuzzy, volumeless phenomena: sparks, embers, dust, rain, magic trails, muzzle flash. A plain CPU or single-pass system is fine up to a few thousand particles. Prefer `gpu-particle-systems` once you need hundreds of thousands to millions, depth collisions or simulation in a compute pass. Prefer `sph-fluids` or `position-based-fluids` when particles must interact and behave like a liquid. Prefer `volume-ray-marching` for dense smoke that needs self-shadowing, and `boids` when agents steer from neighbours. Pair with `soft-particles` to hide intersection seams and `curl-noise-flow` for swirling motion.",
 "cost": {
  "class": "cheap",
  "notes": "Scales linearly with particle count; overdraw of large translucent sprites is usually the real cost, not the update."
 },
 "failure_modes": [
  "Large alpha-blended sprites cause heavy overdraw and fill-rate spikes on mobile",
  "Hard intersection lines where a quad cuts through scene geometry (see soft-particles)",
  "Visible popping when sort order or lifetime curves change abruptly between frames",
  "Variable frame time changes the emission pattern unless spawn counts are accumulated with a fractional remainder",
  "Flat, card-like look in smoke because sprites carry no volumetric lighting"
 ],
 "sources": [
  {
   "role": "primary",
   "key": "doi:10.1145/964967.801167",
   "type": "paper",
   "title": "Particle systems—a technique for modeling a class of fuzzy objects",
   "authors": [
    "William T. Reeves"
   ],
   "year": 1983,
   "venue": "ACM SIGGRAPH Computer Graphics",
   "url": "https://doi.org/10.1145/964967.801167",
   "ids": {
    "doi": "10.1145/964967.801167"
   },
   "license": null,
   "extra": {
    "csl_type": "journal-article"
   },
   "provenance": {
    "title": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1145/964967.801167",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1145/964967.801167",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1145/964967.801167",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1145/964967.801167",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1145/964967.801167",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": 1,
   "__bib": "reeves1983particle"
  },
  {
   "role": "tutorial",
   "key": "url:https://docs.unity3d.com/Packages/com.unity.visualeffectgraph@latest",
   "type": "tutorial",
   "title": "Unity Visual Effect Graph documentation",
   "authors": [
    "Unity Technologies"
   ],
   "year": null,
   "venue": "docs.unity3d.com",
   "url": "https://docs.unity3d.com/Packages/com.unity.visualeffectgraph@latest",
   "ids": {},
   "license": null,
   "extra": {
    "http_status": 200,
    "live": true,
    "archive": {
     "url": "http://web.archive.org/web/20261105084132/https://docs.unity3d.com/Packages/com.unity.visualeffectgraph@latest/",
     "timestamp": "20261105084132"
    },
    "page_title": "Redirecting to latest version of com.unity.visualeffectgraph",
    "host": "docs.unity3d.com",
    "title_confirmed_by_page": false,
    "title_unconfirmed": false
   },
   "provenance": {
    "title": {
     "authority": "research-draft",
     "endpoint": "title_hint/author_hint, checked against page title where available",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "http",
     "endpoint": "GET https://docs.unity3d.com/Packages/com.unity.visualeffectgraph@latest → 200",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "research-draft",
     "endpoint": "title_hint/author_hint, checked against page title where available",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "http",
     "endpoint": "GET https://docs.unity3d.com/Packages/com.unity.visualeffectgraph@latest → 200",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "research-draft",
     "endpoint": "title_hint/author_hint, checked against page title where available",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": 0.18181818181818182,
   "__bib": "technologiesunity"
  },
  {
   "role": "implementation",
   "key": "gh:mrdoob/three.js",
   "type": "code",
   "title": "mrdoob/three.js",
   "description": "JavaScript 3D Library.",
   "authors": [
    "mrdoob"
   ],
   "year": 2010,
   "venue": "GitHub",
   "url": "https://github.com/mrdoob/three.js",
   "ids": {
    "repo": "mrdoob/three.js"
   },
   "license": "MIT",
   "extra": {
    "stars": 119718,
    "stars_checked": "2026-11-29",
    "archived": false,
    "fork": false,
    "pushed_at": "2026-11-29T11:39:51Z",
    "language": "JavaScript",
    "homepage": "https://threejs.org/",
    "license_name": "MIT License"
   },
   "provenance": {
    "title": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/mrdoob/three.js",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/mrdoob/three.js",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/mrdoob/three.js",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/mrdoob/three.js",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/mrdoob/three.js",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "license": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/mrdoob/three.js",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": null,
   "__bib": "mrdoob2010mrdoob"
  }
 ],
 "presets": [
  {
   "id": "particle-systems-fountain",
   "title": "Stateless ballistic fountain (140 particles)",
   "runtime": "glsl-fragment",
   "params": {
    "count": 140,
    "life": 2,
    "speed": 1.2,
    "spread": 0.55,
    "gravity": [
     0,
     -1.6
    ]
   },
   "code": "// GLSL ES 3.0, Shadertoy-style. Stateless fountain: every particle is a closed-form ballistic arc of age.\nconst int   COUNT   = 140;\nconst float LIFE    = 2.0;\nconst float SPEED   = 1.2;\nconst float SPREAD  = 0.55;\nconst vec2  GRAVITY = vec2(0.0, -1.6);\n\nfloat hash11(float n) { return fract(sin(n * 127.1) * 43758.5453); }\n\nvoid mainImage(out vec4 fragColor, in vec2 fragCoord) {\n    vec2 uv = (fragCoord - 0.5 * iResolution.xy) / iResolution.y;\n    vec3 col = mix(vec3(0.02, 0.03, 0.07), vec3(0.08, 0.05, 0.12), uv.y + 0.5);\n    for (int i = 0; i < COUNT; i++) {\n        float fi = float(i);\n        float age = fract((iTime + hash11(fi + 1.0) * LIFE) / LIFE);   // 0 at birth, 1 at death\n        float t = age * LIFE;\n        float ang = (hash11(fi * 3.7 + 2.0) - 0.5) * 2.0 * SPREAD;\n        float sp = SPEED * (0.7 + 0.5 * hash11(fi * 5.3 + 4.0));\n        vec2 p = vec2(0.0, -0.4) + vec2(sin(ang), cos(ang)) * sp * t + 0.5 * GRAVITY * t * t;\n        float r = 0.014 * (1.0 - 0.6 * age);\n        float a = smoothstep(r * 2.0, 0.0, length(uv - p)) * (1.0 - age);\n        col += mix(vec3(1.0, 0.85, 0.35), vec3(1.0, 0.2, 0.05), age) * a * 1.3;\n    }\n    fragColor = vec4(pow(col, vec3(0.4545)), 1.0);\n}",
   "basis": "original",
   "license_note": "written for this index",
   "execution_fidelity": "conceptual-diagram",
   "proof": {
    "kind": "rendered",
    "label": "rendered 2026-11-29",
    "ok": true,
    "proof": {
     "ok": true,
     "technique": "particle-systems",
     "runtime": "glsl-fragment",
     "checked_at": "2026-11-29T15:51:50.471Z",
     "renderer": "Chromium 145.0.7632.6 headless, WebGL2 via ANGLE/SwiftShader, 512×512, iTime=1.5",
     "stats": {
      "mean": 0.2757,
      "std": 0.1172,
      "unique_colors": 218
     },
     "image": "/specimens/particle-systems-fountain.webp",
     "reason": null
    }
   }
  }
 ],
 "related": [
  "gpu-particle-systems",
  "soft-particles",
  "curl-noise-flow",
  "boids",
  "sph-fluids"
 ],
 "extends": [],
 "supersedes": [],
 "combines_with": [
  {
   "id": "curl-noise-flow",
   "why": "Curl noise supplies a divergence-free velocity field that particle updates sample each step for swirling smoke and dust."
  },
  {
   "id": "soft-particles",
   "why": "Particle quads are rendered with a depth fade against the scene depth so they stop cutting hard lines through geometry."
  }
 ],
 "provenance": {
  "prose": "original text written for this index (research draft, editorially reviewed)",
  "sources_verified_at": "2026-11-29T15:51:27.588Z",
  "draft": "data/drafts/simulation/particle-systems.json"
 },
 "solves": [
  "need sparks, embers or dust drifting around a scene",
  "fire and smoke effect looks like one flat solid object",
  "want thousands of small fading glow points cheaply",
  "effects need emitter with random lifetime, size and colour over age"
 ],
 "authority": "Reeves, 1983",
 "url": "https://texelatlas.vercel.app/t/particle-systems/",
 "execution_fidelity": "conceptual-diagram",
 "fidelity_label": "Visual Diagram",
 "benchmark_eligible": false,
 "gpu_weight": {
  "weight_x": 82.53,
  "tier": "extreme",
  "p50_ms": 2.7152,
  "p95_ms": 2.8005,
  "baseline_p50_ms": 0.0329,
  "gpu": "Tesla T4/PCIe/SSE2",
  "resolution": "1920x1080",
  "method": "opengl-timer-query",
  "frames": 40,
  "preset_id": "particle-systems-fountain",
  "execution_fidelity": "conceptual-diagram",
  "fidelity_label": "Visual Diagram",
  "benchmark_eligible": false,
  "generated_at": "2026-11-30T21:07:47Z",
  "l4": {
   "weight_x": 58.17,
   "tier": "heavy",
   "p50_ms": 0.9249,
   "p95_ms": 0.9319,
   "speedup_x": 2.94,
   "gpu": "NVIDIA L4/PCIe/SSE2",
   "resolution": "1920x1080",
   "baseline_p50_ms": 0.0159
  },
  "a100": {
   "weight_x": 53.69,
   "tier": "heavy",
   "p50_ms": 1.5462,
   "p95_ms": 1.5468,
   "speedup_x": 1.76,
   "gpu": "NVIDIA A100-SXM4-40GB/PCIe/SSE2",
   "resolution": "1920x1080",
   "baseline_p50_ms": 0.0288
  }
 }
}