/pixel-splats:pixel-splatsfrom pixel splats
Make pixel-art Gaussian splat dioramas, small floating 3D scenes modelled as SDFs in plain JavaScript, covered in Gaussian splats and drawn through a pixel-art pass (one palette, dithering, outlines) in WebGL2. Use to add a new diorama to pixel-splats, change or animate one, tune its palette, lights and camera, render stills to check it, or film it to an MP4 or GIF.
Ships in pixel splats. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Everything lives in index.html: the SDF library, the splat sampler, the scenes, the WebGL2 renderer and the pixel
pass. No build step and no packages. A diorama is one object pushed onto SCENES inside <script id="shared">; the
page builds its splats in a web worker in about half a second and renders it live.
The API is in REFERENCE.md. Read it before writing a scene.
You can't judge a diorama from its code. Render it, look at it, fix the worst thing, render again.
Pick the idea. One hero with a silhouette that reads at about 200 px tall, on a round base about 2 units across, one palette family with one or two accents, and one thing that moves (a beam, a chomp, fish, a flame, breathing).
Start from the closest scene. Copy its (() => { ... SCENES.push({...}); })(); block, give it a new name and
seed, and add the name to ORDER (near the end of the shared script) where it should sit in the line-up.
Build in this order: the base, the hero, the details, the effects, then lights, camera and palette.
Render stills (needs Node 22+ and Chrome; it serves the folder itself):
node tools/shot.mjs <name> --angles 3 # three views around it, 4x, in out/shots/
node tools/shot.mjs <name> --crop 150,40,90,70 # canvas pixels from the top left, at 6x
node tools/shot.mjs <name> --mode clay --size 768x432 --scale 1 # the shapes alone, no colour
Open every PNG and look. The camera orbits, so the back of the scene is seen as often as the front.
Fix the worst thing first, render again, and repeat until it reads at a glance from all three angles.
Film it when it's done (needs ffmpeg): node tools/film.mjs <name> --seconds 8, or --out out/<name>.gif.
Open the page with python3 -m http.server and http://localhost:8000/#<name> to see it live; P turns the pixel
pass off.
These came from building the five scenes, each one learned the hard way.
cam.dist (about 3.2 to 4.6) and cam.target until it does.lam, default 0.15). Surfaces get only flat colour or a 50% checker
(lamS, default 3; lower it for more texture). Busy diamond patterns on a surface mean its colour sits between two
palette colours: move the material's colour or add a palette step.jit 0.12 to 0.25) and large mottling (pat) make the painterly
clusters. Above about 0.2, big flat areas such as grass turn noisy: lower jit and raise pat.emis 0.1 to 0.2 still show their facets; at 0.5 they flatten into
one pink shape. Save high values for lamps, eyes, embers and fire.density: 1.6 to 3.ghost, two-sided, noG disc at about 0.08 opacity a splat, so the fish under it still show and
the outline pass ignores it.dir (use A.beam). They fade when they point at the camera, so a head-on sweep
is a flash, not a blob.rise takes hard: 1. Sizes of 0.005 to 0.006 give
1 to 2 px sparkles. Fire is a rise of kind: 5 flames, a glow, hard embers and a point light with fl flicker.outline, default 0.38). Separate parts at different
depths get them for free; parts that touch don't.lip to 1.5 to 1.7.ghost.A.R()) is shared, so adding or removing a call
reshuffles everything after it. Keep the seed and re-check all angles.G.pose.h (0.02) halves the count.ORDER.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub patch-gg/pixel-splats --plugin pixel-splats