Pixel Render 3D (three.js scenes as true pixel art)
/pixel-render-3d
A GameSkill original that renders a three.js scene as true pixel art for browser games: a small render target, a depth-edge outline, a palette lock of up to 32 colours with optional Bayer dither and a whole-number nearest upscale, with three.js r181 (MIT) bundled. A headless Chrome checker proves the canvas is real pixel art: whole-number scale, every block one colour, palette only, outline present.
- License
- MIT
- By
- By GameSkill
Tested by GameSkill
24/24 checks passed on three.js r181 (WebGL2) in headless Chrome + Node 22 (2026-11-09): trigger, a runnable example, a screenshot and self-check, one job per skill, and English + Chinese docs. Trigger checks match prompts against skill descriptions; they are not a live agent run.
Test reportGameSkill's tested copy
Written and tested by GameSkill for gameskill.dev. The ZIP holds the whole skill: SKILL.md and its Chinese version, scripts, a runnable example, tests, the self-check list and our test report.
A GameSkill original, released under MIT. The ZIP keeps LICENSE and CREDITS.md, which lists the workflow inspiration, the CC0 test assets and the third-party libraries with their licenses.
Self-check
- 画布是美术尺寸的整数倍,像素比 1,关闭抗锯齿 / Canvas a whole multiple of the art size, pixel ratio 1, antialias off
- pixel_check.mjs 对定格帧全部通过 / pixel_check.mjs passes on a frozen frame
- 屏幕上只有约定调色板的颜色 / Only the agreed palette colours on screen
Install
Tell your AI
Install the skill from https://gameskill.dev/skills/pixel-render-3d/install.md
GameSkill's tested copy
mkdir -p .claude/skills
curl -fsSL https://gameskill.dev/dl/skills/pixel-render-3d.zip -o /tmp/gameskill-pixel-render-3d.zip
unzip -oq /tmp/gameskill-pixel-render-3d.zip -d .claude/skills
rm /tmp/gameskill-pixel-render-3d.zipWhat you get
- pixel-render.js: PixelRenderer(renderer, { width, height, palette, outline, outlineDepth, dither }) with render(scene, camera)
- vendor/three: three.js r181 module build, unchanged, with its MIT licence
- tools/pixel_check.mjs: whole-number scale, block-clean, palette-only, outline and error checks in headless Chrome
- Windmill Hill, our own demo scene with palette, outline, dither and plain-render switches, and 12 checks in test/run_tests.mjs
Good fit
- Browser games that use 3D models but should look like pixel art
- Turning a low-poly three.js scene into a retro look with a fixed palette
- Proving a WebGL pixel-art game is not secretly smooth or off-palette
Not for
- Cleaning AI-generated 2D sprites: use pixel-snap-cleanup
- Godot or Unity projects (the renderer is three.js; the checker works on any web canvas)
- Photo-real or high-resolution rendering
Try this prompt
My three.js game should look like 160x120 pixel art in the Sweetie 16 palette with dark outlines. Set up the renderer and prove the canvas is real pixel art.About this skill
A GameSkill original. Rendering 3D at full resolution and calling it pixel art gives soft edges, hundreds of colours and uneven pixels. pixel-render.js does it the way that works: it draws the scene into a small target, adds a depth-edge outline on the near side, locks every pixel to a palette of up to 32 exact sRGB colours (optional Bayer dither) and blits it at a whole-number scale with nearest filtering. three.js r181 (MIT) is bundled. tools/pixel_check.mjs loads the page in headless Chrome and proves the canvas is real pixel art.
Agent steps
- Agree the art resolution, the palette and the outline colour.
- Wire
PixelRendererinto the game loop with a canvas that is a whole multiple of the art size. - Check a frozen frame with
pixel_check.mjsuntil every check passes.
Common problems it catches
- Pixels of different sizes from a non-integer scale or a linear filter.
- Colours off the palette because of colour management or tone mapping.
- A "pixel" game that actually renders at full resolution with smooth edges.
Credits
three.js r181 (MIT) is bundled unchanged with its licence. The idea of a 3D-to-pixel-art engine comes from Noxe Pixel Engine by danieljan-design (MIT; link only, no code or text used). The renderer, the Windmill Hill demo and the text are ours.
Requirements
- A browser with WebGL2; three.js r181 is bundled
- Node 22+ and Google Chrome or Chromium for tools/pixel_check.mjs (headless); no npm packages
Topics
FAQ
AI 2D Asset & Sprite Pipeline Kit
Turn raw AI-generated video clips into crisp transparent 2D sprite sheets: chroma-key + despill commands, 0px foot-root anchor locking, non-linear hit-stop action pacing (4.33s -> 1.88s), and Phaser 3 / Godot 4 SpriteFrames exporters.
Based on three.js by three.js authors (MIT; r181 module build shipped unchanged). Their code ships unchanged in the ZIP with its licence; GameSkill wrote the skill text, tests and example. CREDITS.md lists every source. · Based on Noxe Pixel Engine (idea only) by danieljan-design (MIT; idea only, no code or text used). Ideas only: GameSkill wrote the code and text; CREDITS.md in the ZIP lists every source.
Works well with
Skills the author points to as related or as the better fit for neighbouring tasks.
Pixel Snap Cleanup (AI fake pixels to true pixel art)
A GameSkill original that turns AI "fake pixel" art into true pixel art at the grid you choose: snap to a real grid with the bundled Pixel Snapper (MIT), force 0/255 alpha and a fixed palette, hit the exact size, then check it is CLEAN and imports crisp into Godot 4. Works on single sprites and on animation frames, which share one grid.
Style Cards (one art style as hard limits, switch looks by switching cards)
A GameSkill original that writes a game's art style down as a card of measurable limits (canvas, colours and palette, alpha, triangles, shading, materials, textures, voxel grid), pastes it into every asset request and checks every asset against it. Ships 16 cards from pixel (including fixed PICO-8, CGA, four-greens LCD and Endesga 32 palettes) and one-bit to low-poly, voxel and toon, a no-dependency PNG checker, a Blender GLB checker and a palette locker; switch the whole look by switching the card.
Pixel Diorama Game (tiny isometric pixel games with seamless ambience)
A GameSkill original for making a small browser game as an isometric pixel diorama: one place floating on white, a fixed 30-degree camera, a 360x280 canvas scaled by whole pixels, hue-shifted shading, long hard shadows and one physical action, plus rain, ripples, smoke, embers and lamp flicker drawn by code in loops that wrap without a seam. Ships the Pixel Plays renderer (MIT), our ambience kit and a tested example game.
Similar skills
Godogen
Autonomous game development with Claude Code and Codex. Publishes a ready game repo for Godot, Bevy, Babylon.js or three.js.
pixelfx
244 pixel-art effects written as code (fire, explosions, magic, weather, UI, pickups, critters) plus a draft, render, look, refine loop for making new ones; every effect exports a sprite sheet with Aseprite-style JSON for Godot, Unity, Phaser or any engine.
Three.js Game Skills
Nine Agent Skills for Codex and Claude Code that build playable Three.js browser games, with a director skill, a Vite scaffold and Playwright QA.
3AGameFactory (GameFactory-3A)
An Apache-2.0 framework of agent skills and pipelines that turns a game requirement into assets (image, 3D, motion, audio, CG video) and engine-ready code for UE5, Blender, Unity, Godot 4 and three.js.