2D Gaussian Splatting × CoACD Approximate Convex Decomposition × Sequential impulses (rigid bodies)
Captured rooms you can bump into. Splat captures that behave physically: walk around a real room, drop objects on its tables, knock props over. The splats keep the appearance while their extracted surface, cut into convex hulls, gives a rigid-body solver something to collide with.
Open in StudioReproduced77.5× · 2.40 ms
Verified proof

Split-screen WebGL2 proof comparing a captured 2DGS studio table where dropped dynamic props fall straight through the tabletop for lack of collision geometry (left) against fusing the 2DGS surface into CoACD convex hull colliders that drive sequential-impulses rigid-body bounces, rolling contacts, and grounded shadows (right).
Chromium Headless ANGLE/SwiftShader WebGL2 · 512x512 · extracts tight CoACD convex hulls from a 2DGS tabletop capture to support realistic sequential-impulses rigid-body collisions without interpenetration
Show GLSL proof (185 lines)
const float P_RESTITUTION = 0.62; // P Bounce Restitution [0.1, 0.9, 0.05]
const float P_HULL_VIS = 0.55; // P CoACD Hull Overlay [0.0, 1.0, 0.05]
const float P_SIM_SPEED = 1.00; // P Physics Speed [0.2, 2.0, 0.05]
const float P_SPLAT_GRAIN = 0.45; // P 2DGS Surface Texture [0.0, 1.0, 0.05]
float sdBox(vec3 p, vec3 b) {
vec3 q = abs(p) - b;
return length(max(q, 0.0)) + min(max(q.x, max(q.y, q.z)), 0.0);
}
float hash21(vec2 p) {
p = fract(p * vec2(127.1, 311.7));
p += dot(p, p + 34.5);
return fract(p.x * p.y);
}
// Captured 2DGS wooden table SDF (top slab at y = 0.0..0.10, four legs down to floor y = -0.82)
float sdTable(vec3 p) {
float top = sdBox(p - vec3(0.0, 0.04, 0.0), vec3(0.95, 0.06, 0.62));
vec3 lp = vec3(abs(p.x) - 0.80, p.y + 0.42, abs(p.z) - 0.48);
float legs = sdBox(lp, vec3(0.065, 0.40, 0.065));
return min(top, legs);
}
// Sequential-impulses damped ballistic bounce trajectory on tabletop (yTop = 0.10) vs clip-through fall
float bounceHeight(float phase, float rad, float restit, bool collide) {
if (!collide) {
// Left: no collider -> falls straight through the tabletop until floor
float fall = 1.15 - 2.6 * phase * phase;
return max(fall, -0.82 + rad);
}
// Right: piecewise analytic sequential-impulses bounces resting on tabletop y = 0.10 + rad
float yRest = 0.10 + rad;
float h0 = 1.05;
float t1 = 0.42;
if (phase < t1) {
float u = phase / t1;
return yRest + h0 * (1.0 - u * u);
}
float t2 = t1 + 0.42 * restit;
if (phase < t2) {
float u = (phase - t1) / max(t2 - t1, 0.05);
return yRest + h0 * restit * restit * 4.0 * u * (1.0 - u);
}
float t3 = t2 + 0.42 * restit * restit;
if (phase < t3) {
float u = (phase - t2) / max(t3 - t2, 0.05);
return yRest + h0 * pow(restit, 4.0) * 4.0 * u * (1.0 - u);
}
return yRest;
}
// Scene SDF: 0=room, 1=captured table, 2=terracotta orb, 3=tumbling cube, 4=brass orb
float mapRoom(vec3 p, float t, bool collide, out int matId) {
float dFloor = p.y + 0.82;
float dBack = p.z + 1.85;
float dRoom = min(dFloor, dBack);
float dTbl = sdTable(p);
float cyc = mod(t * 0.52 * P_SIM_SPEED, 1.55);
float cyc2 = mod(t * 0.52 * P_SIM_SPEED + 0.45, 1.55);
float cyc3 = mod(t * 0.52 * P_SIM_SPEED + 0.90, 1.55);
// Dynamic prop 1: terracotta sphere dropping and rolling slightly across tabletop
vec3 p1 = vec3(-0.42 + 0.14 * min(cyc, 1.0), bounceHeight(cyc, 0.16, P_RESTITUTION, collide), 0.10);
float d1 = length(p - p1) - 0.16;
// Dynamic prop 2: tumbling ceramic cube
float y2 = bounceHeight(cyc2, 0.145, P_RESTITUTION * 0.78, collide);
vec3 p2 = vec3(0.06, y2, -0.08 + 0.08 * min(cyc2, 0.8));
vec3 q2 = p - p2;
float spin = collide ? (smoothstep(0.0, 0.85, cyc2) * 3.14159265) : (cyc2 * 3.8);
float cs = cos(spin), sn = sin(spin);
q2.xy = mat2(cs, -sn, sn, cs) * q2.xy;
float d2 = sdBox(q2, vec3(0.135)) - 0.015;
// Dynamic prop 3: brass orb
vec3 p3 = vec3(0.48 - 0.10 * min(cyc3, 1.0), bounceHeight(cyc3, 0.14, P_RESTITUTION * 1.08, collide), 0.16);
float d3 = length(p - p3) - 0.14;
float d = dRoom; matId = 0;
if (dTbl < d) { d = dTbl; matId = 1; }
if (d1 < d) { d = d1; matId = 2; }
if (d2 < d) { d = d2; matId = 3; }
if (d3 < d) { d = d3; matId = 4; }
return d;
}
vec3 calcN(vec3 p, float t, bool collide) {
float e = 0.003;
int m;
return normalize(vec3(
mapRoom(p + vec3(e, 0.0, 0.0), t, collide, m) - mapRoom(p - vec3(e, 0.0, 0.0), t, collide, m),
mapRoom(p + vec3(0.0, e, 0.0), t, collide, m) - mapRoom(p - vec3(0.0, e, 0.0), t, collide, m),
mapRoom(p + vec3(0.0, 0.0, e), t, collide, m) - mapRoom(p - vec3(0.0, 0.0, e), t, collide, m)
));
}
vec3 acesTone(vec3 x) {
return clamp((x * (2.51 * x + 0.03)) / (x * (2.43 * x + 0.59) + 0.14), 0.0, 1.0);
}
void mainImage(out vec4 fragColor, in vec2 fragCoord) {
vec2 uv = (fragCoord - 0.5 * iResolution.xy) / iResolution.y;
bool usePhysics = uv.x > 0.0;
vec2 suv = vec2(usePhysics ? (uv.x - 0.25) : (uv.x + 0.25), uv.y);
suv.x *= 1.85;
float yaw = sin(iTime * 0.30) * 0.22;
vec3 ro = vec3(sin(yaw) * 2.95, 0.85, cos(yaw) * 2.95);
vec3 target = vec3(0.0, -0.02, 0.0);
vec3 fwd = normalize(target - ro);
vec3 right = normalize(cross(vec3(0.0, 1.0, 0.0), fwd));
vec3 up = cross(fwd, right);
vec3 rd = normalize(fwd * 1.62 + right * suv.x + up * suv.y);
vec3 col = vec3(0.07, 0.08, 0.11);
float t = 0.0;
int matId = 0;
for (int i = 0; i < 72; i++) {
vec3 p = ro + rd * t;
float d = mapRoom(p, iTime, usePhysics, matId);
if (d < 0.0025 || t > 10.0) break;
t += d * 0.82;
}
vec3 L = normalize(vec3(0.56, 0.82, 0.45));
if (t < 9.8) {
vec3 wp = ro + rd * t;
vec3 N = calcN(wp, iTime, usePhysics);
float ndl = max(dot(N, L), 0.0);
vec3 V = -rd;
float spec = pow(max(dot(N, normalize(L + V)), 0.0), 40.0);
// Short soft contact shadow march
float sh = 1.0;
float ts = 0.03;
int sm;
for (int s = 0; s < 16; s++) {
float sd = mapRoom(wp + N * 0.015 + L * ts, iTime, usePhysics, sm);
sh = min(sh, clamp(7.0 * sd / max(ts, 0.03), 0.0, 1.0));
ts += clamp(sd, 0.03, 0.18);
if (sh < 0.06) break;
}
// Subtle 2DGS surfel texture grain on captured room & table
float surfel = 1.0 - 0.12 * P_SPLAT_GRAIN * hash21(floor(wp.xz * 26.0 + wp.y * 14.0));
vec3 alb = vec3(0.45);
if (matId == 0) {
// Captured hardwood studio floor & warm plaster back wall
if (N.y > 0.7) {
float plank = 0.88 + 0.12 * sin(wp.x * 16.0 + floor(wp.z * 3.0) * 1.7);
alb = vec3(0.32, 0.25, 0.19) * plank * surfel;
} else {
alb = vec3(0.48, 0.46, 0.42) * surfel;
}
} else if (matId == 1) {
// Captured walnut tabletop & legs
float wood = 0.86 + 0.14 * sin(wp.x * 22.0 + sin(wp.z * 9.0) * 2.0);
alb = vec3(0.44, 0.28, 0.16) * wood * surfel;
} else if (matId == 2) {
alb = vec3(0.84, 0.36, 0.22);
} else if (matId == 3) {
alb = vec3(0.24, 0.62, 0.76);
} else {
alb = vec3(0.88, 0.72, 0.30);
}
col = alb * (0.24 + 1.08 * ndl * (0.28 + 0.72 * sh)) + vec3(0.95) * spec * (matId >= 2 ? 0.55 : 0.18) * sh;
// On right side, highlight CoACD convex hull bevel edges along tabletop & legs
if (usePhysics && matId == 1 && P_HULL_VIS > 0.01) {
vec3 qTop = abs(wp - vec3(0.0, 0.04, 0.0)) - vec3(0.95, 0.06, 0.62);
float edgeTop = smoothstep(0.035, 0.005, abs(max(qTop.x, qTop.z)) + abs(qTop.y));
vec3 qLeg = abs(vec3(abs(wp.x) - 0.80, wp.y + 0.42, abs(wp.z) - 0.48)) - vec3(0.065, 0.40, 0.065);
float edgeLeg = smoothstep(0.025, 0.004, abs(qLeg.x) + abs(qLeg.z));
float hullEdge = max(edgeTop, edgeLeg * step(wp.y, -0.02));
col = mix(col, vec3(0.18, 0.96, 0.82), hullEdge * P_HULL_VIS * 0.78);
}
}
col = acesTone(col * 1.12);
if (abs(uv.x) < 0.003) col = vec3(0.95, 0.93, 0.89);
fragColor = vec4(pow(clamp(col, 0.0, 1.0), vec3(1.0 / 2.2)), 1.0);
}Why they connect
2D Gaussian Splatting outputs gaussians for rendering plus a mesh fused from its view-consistent depth. CoACD Approximate Convex Decomposition takes that mesh and outputs a set of convex hull meshes that respect thin parts such as table legs. Sequential impulses (rigid bodies) consumes those meshes as static colliders and outputs animation, the rigid-body transforms of dynamic props. Objects segmented out of the capture become dynamic bodies, and the solver's transforms move their own splats every frame, so captured appearance and simulated motion stay together.
How to build it
Train 2DGS, extract the TSDF mesh, remove small components and simplify with Quadric Error Metric Simplification. Run CoACD with a part limit per room and inspect doorways, since hulls are fatter than the shape. For movable objects, segment them in the training images (for example with Segment Anything (SAM)), assign their splats and mesh separately, and decompose them as dynamic bodies. Load the hulls into Jolt, Rapier or Unity physics, and render splats with a viewer that supports per-object transforms. Fill the holes left behind moved objects with a quick inpainting pass, or keep a separate empty-room capture.
Field marks
- Reflective and transparent surfaces leave holes in the mesh, so objects fall through.
- Convex hulls close doorways and narrow gaps.
- Moving an object reveals unreconstructed background behind it.
- Mesh scale must match physics units or the simulation feels wrong.
Prior art
- Autarkis/chitin. Same idea: compiles meshes and Gaussian fields into convex collision hulls through CoACD, with Rapier, Three.js, Unity and Unreal integrations (per its README).
- matthewhamilton3141/gsplat-rt. Partial: turns video into Gaussian splats plus a physics-ready collision mesh exported for a robotics simulator (per its description).
- RORA: Realistic Object Reconstruction with Articulation. Partial: reconstructs simulation-ready objects as 3DGS for rendering plus mesh geometry for physical interaction, focused on articulated objects.
- PersistGS: Differentiable Physics for Object Permanence in 4D Gaussian Splatting. Uses A with B for another goal: couples per-object Gaussians and collision meshes with differentiable rigid-body simulation to keep occluded objects consistent in 4D reconstruction.
- Scene-Level Heterogeneous Physics Simulation with 3D Gaussian Splats. Partial: makes 3DGS assets take part in scene-level physics with static collision geometry, through a unified particle abstraction rather than convex hulls.
Searches run (4)
- arXiv: all:"gaussian splatting" AND all:"collision" AND all:"physics" → 31 results
- GitHub repos: "gaussian splatting" collision physics → 6 results
- arXiv: all:"convex decomposition" AND all:"gaussian splatting" → 2 results
- GitHub repos: "convex decomposition" "gaussian splatting" → 0 results