{
 "id": "per-object-motion-blur",
 "title": "Plausible motion blur (reconstruction filter)",
 "aliases": [
  "McGuire motion blur"
 ],
 "domain": "post",
 "subdomain": "motion blur",
 "stage": "post",
 "realtime": "realtime",
 "platforms": [
  "webgl2",
  "webgpu",
  "desktop-gpu",
  "mobile-gpu",
  "unity",
  "unreal"
 ],
 "year_introduced": 2012,
 "inputs": [
  "ldr-image",
  "depth",
  "gbuffer"
 ],
 "outputs": [
  "ldr-image"
 ],
 "style": "photoreal",
 "dynamic": "dynamic",
 "summary": "Post-process motion blur that tiles the velocity buffer, picks the dominant velocity per neighbourhood, and gathers colour along it with depth-aware weights so moving objects blur over backgrounds and sharp silhouettes survive.",
 "how_it_works": "The renderer outputs a per-pixel velocity buffer. A first pass reduces it into tiles holding the largest velocity vector in each tile, and a second pass spreads that to a 3x3 tile neighbourhood so each pixel knows the strongest velocity that could affect it. The gather then samples colour along that dominant direction. Each sample's weight depends on whether the sample's velocity and depth say it can cover the centre pixel, so a fast foreground object smears into the background but a static foreground does not get blurred by a moving background. A soft depth comparison avoids hard edges. Dithered sample offsets hide banding, and a light blur or temporal filter cleans the noise.",
 "when_to_use": "Choose it when you have accurate per-object velocity and want film-like blur on fast motion without rendering sub-frames.\n\nPrefer camera-only blur reconstructed from depth when no velocity buffer exists. Pair with `temporal-anti-aliasing`, which already requires the same velocity buffer.",
 "cost": {
  "class": "medium",
  "notes": "Tile max pass, neighbour-max pass and a gather of roughly 8 to 16 taps; qualitative."
 },
 "failure_modes": [
  "Foreground objects do not blur over the background they occlude where that background is unknown",
  "Wrong or missing velocity on transparents and particles breaks the effect",
  "Sampling noise or banding at low tap counts",
  "Strobing appearance at very low frame rates where blur length is large"
 ],
 "sources": [
  {
   "role": "primary",
   "key": "doi:10.1145/2159616.2159639",
   "type": "paper",
   "title": "A reconstruction filter for plausible motion blur",
   "authors": [
    "Morgan McGuire",
    "Padraic Hennessy",
    "Michael Bukowski",
    "Brian Osman"
   ],
   "year": 2012,
   "venue": "Proceedings of the ACM SIGGRAPH Symposium on Interactive 3D Graphics and Games",
   "url": "https://doi.org/10.1145/2159616.2159639",
   "ids": {
    "doi": "10.1145/2159616.2159639"
   },
   "license": null,
   "extra": {
    "csl_type": "proceedings-article"
   },
   "provenance": {
    "title": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1145/2159616.2159639",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1145/2159616.2159639",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1145/2159616.2159639",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1145/2159616.2159639",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1145/2159616.2159639",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": 1,
   "__bib": "mcguire2012reconstruction"
  }
 ],
 "presets": [
  {
   "id": "per-object-motion-blur-specimen",
   "title": "Left: sharp frame. Right: gather along the dominant velocity (dilated around the moving disc)",
   "runtime": "glsl-fragment",
   "params": {
    "NT": 32
   },
   "code": "float hash(vec2 c){uvec2 u=uvec2(ivec2(floor(c)));uint h=u.x*1597334673u^u.y*3812015801u;h^=h>>15;h*=2246822519u;h^=h>>13;h*=3266489917u;h^=h>>16;return float(h)*(1./4294967296.);}\nfloat lum(vec3 c){return dot(c,vec3(.2126,.7152,.0722));}\nvec3 gam(vec3 c){return pow(clamp(c,0.,1.),vec3(1./2.2));}\n\nconst vec2 VEL=vec2(0.17,0.045); // P\nconst int NT=32; // P\nvec3 frame(vec2 p){\n  vec3 c=mix(vec3(.85,.88,.8),vec3(.55,.65,.75),clamp(p.y+.5,0.,1.));\n  c*=.75+.25*step(.5,fract(p.x*14.));\n  vec2 o=p-vec2(-.04,-.02);float d=length(o)-.09;\n  vec3 oc=mix(vec3(.9,.3,.2),vec3(1.,.85,.3),step(.5,fract((o.x+o.y)*40.)));\n  return mix(c,oc*(.65+.5*clamp(.5-o.y*4.,0.,1.)),smoothstep(.002,-.002,d));}\nbool isObj(vec2 p){return length(p-vec2(-.04,-.02))<.09;}\nvoid mainImage(out vec4 fragColor,in vec2 fragCoord){\n  vec2 uv=(fragCoord-.5*iResolution.xy)/iResolution.y;bool R=uv.x>0.;vec2 q=vec2(uv.x+(R?-.25:.25),uv.y);\n  vec3 col=frame(q);\n  if(R){bool near=false;\n    for(int i=-4;i<=4;i++)if(isObj(q+VEL*float(i)/8.))near=true;\n    if(near){vec3 acc=vec3(0.);\n      for(int i=0;i<NT;i++){float t=(float(i)+.5)/float(NT)-.5;acc+=frame(q+VEL*t);}\n      col=acc/float(NT);}}\n  if(abs(uv.x)<.0015)col=vec3(1.);fragColor=vec4(gam(col),1.);\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": "per-object-motion-blur",
     "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.821,
      "std": 0.0673,
      "unique_colors": 147
     },
     "image": "/specimens/per-object-motion-blur-specimen.webp",
     "reason": null
    }
   }
  }
 ],
 "related": [
  "temporal-anti-aliasing",
  "depth-of-field-scatter-as-gather"
 ],
 "extends": [],
 "supersedes": [],
 "combines_with": [
  {
   "id": "temporal-anti-aliasing",
   "why": "Both consume the same velocity buffer."
  }
 ],
 "provenance": {
  "prose": "original text written for this index (research draft, editorially reviewed)",
  "sources_verified_at": "2026-11-29T15:51:27.588Z",
  "draft": "data/drafts/post/per-object-motion-blur.json"
 },
 "solves": [
  "fast movement looks choppy at 30 fps",
  "want film-like blur on moving objects",
  "blur smears sharp silhouettes over background",
  "need motion blur without rendering sub-frames"
 ],
 "authority": "McGuire et al., 2012",
 "url": "https://texelatlas.vercel.app/t/per-object-motion-blur/",
 "execution_fidelity": "conceptual-diagram",
 "fidelity_label": "Visual Diagram",
 "benchmark_eligible": false,
 "gpu_weight": {
  "weight_x": 3.09,
  "tier": "light",
  "p50_ms": 0.1018,
  "p95_ms": 0.108,
  "baseline_p50_ms": 0.0329,
  "gpu": "Tesla T4/PCIe/SSE2",
  "resolution": "1920x1080",
  "method": "opengl-timer-query",
  "frames": 40,
  "preset_id": "per-object-motion-blur-specimen",
  "execution_fidelity": "conceptual-diagram",
  "fidelity_label": "Visual Diagram",
  "benchmark_eligible": false,
  "generated_at": "2026-11-30T21:07:47Z",
  "l4": {
   "weight_x": 2.5,
   "tier": "light",
   "p50_ms": 0.0397,
   "p95_ms": 0.0401,
   "speedup_x": 2.56,
   "gpu": "NVIDIA L4/PCIe/SSE2",
   "resolution": "1920x1080",
   "baseline_p50_ms": 0.0159
  },
  "a100": {
   "weight_x": 1.98,
   "tier": "feather",
   "p50_ms": 0.057,
   "p95_ms": 0.0573,
   "speedup_x": 1.79,
   "gpu": "NVIDIA A100-SXM4-40GB/PCIe/SSE2",
   "resolution": "1920x1080",
   "baseline_p50_ms": 0.0288
  }
 }
}