Sprite stacking
"3D" Sailing Game on a 2D Canvas: Sprite Stacking, No Engine Needed
No 3D engine at all — just one 2D canvas and the old-school "sprite stacking" technique: slice the ship into dozens of 2D pixel slices, stack them bottom-up offset 1 pixel per layer, rotate all layers together on turns, and the eye reads it as a 3D voxel model.
The trick
@noise_winston on a sailing game the AI wrote with — no 3D engine at all, just one 2D canvas and the old-school "sprite stacking" technique. Like slicing toast and stacking it back together. If you want to make a web mini-game without touching 3D graphics, this is the trick to learn. Model name "Gemini 4 Carbon" is as stated by the creator.
1
Step 1 — Slice the ship into dozens of 2D pixel slices
Take the ship sprite and cut it into dozens of thin 2D pixel slices, top to bottom.
2
Step 2 — Stack them bottom-up, each layer offset by 1 pixel
Stack the slices bottom-up, each layer shifted by 1 pixel from the one below. The offset is what creates the depth.
3
Step 3 — When turning, rotate every layer together
Rotate all layers together on turns, and the eye reads the stack as a 3D voxel model. No Three.js, no Unity, no 3D engine.
The trade-offs
It is ultra-lightweight, little code, runs at 60fps even on a phone, and has a built-in retro voxel feel — but it cannot do real lighting, physics collisions or a free camera, and too many objects hurt performance (though the author suggests GPU parallel computing could help). One commenter’s tip: keep the camera to fixed angles (135°, 180°, 225°) instead of rotating freely, or the motion can make viewers dizzy. A commenter who tried the technique built a fixed-camera HD2D test version — playable at https://hd2d-apartment.zombie-survivor.workers.dev/haven. The "why bother" answer from the thread: a five-year-old phone runs it without lag, and it loads fast with fewer dependencies.
Where this came from
Explainer by @noise_winston (黃宗浩, 1,600 followers). Source: https://www.threads.com/@noise_winston/post/Df1QlACDE1y (Nov 16, 2026; 246 likes, 41 comments at read time). Video source (credited by the author in the comments): @chetaslua on X — https://x.com/chetaslua/status/2122264764319666388. Community test version: @dsif2017 — https://hd2d-apartment.zombie-survivor.workers.dev/haven. Source language: Traditional Chinese. The prompt used to generate the game is not stated in the post or comments. The counterpoint to the Three.js comparison in this batch — sometimes the smart move is not a real 3D engine at all.