[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-116062":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":15,"stars7d":16,"stars30d":16,"stars90d":14,"forks30d":14,"starsTrendScore":17,"compositeScore":18,"rankGlobal":9,"rankLanguage":9,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":22,"hasPages":20,"topics":23,"createdAt":9,"pushedAt":29,"updatedAt":30,"readmeContent":31,"aiSummary":32,"trendingCount":14,"starSnapshotCount":14,"syncStatus":33,"lastSyncTime":34,"discoverSource":35},116062,"pixelart-gaussiansplat","cobanov\u002Fpixelart-gaussiansplat","cobanov","Pixel-art Gaussian splats in the browser: scenes written in code, converted 3D models, and the tools to make your own.",null,"JavaScript",152,12,51,0,16,91,82,92.44,"MIT License",false,"main",true,[24,25,26,27,28],"dithering","gaussian-splatting","pixel-art","threejs","webgl","2026-11-17 10:03:17","2026-11-23 19:53:45","# pixelart-gaussiansplat\n\nPixel-art Gaussian splats in the browser. Real 3D you can orbit, drawn as crisp pixel art with a small palette and dark outlines.\n\n![A caravan camp on a floating island, rendered as pixel-art splats](docs\u002Fimages\u002Fcaravan.gif)\n\n| | | |\n|---|---|---|\n| ![Autumn shrine](docs\u002Fimages\u002Fshrine.png) | ![Lighthouse](docs\u002Fimages\u002Flighthouse.png) | ![Caravan camp](docs\u002Fimages\u002Fcaravan.png) |\n| ![Minotaur on a ruined court](docs\u002Fimages\u002Fminotaur.png) | ![Toad in a swamp](docs\u002Fimages\u002Ftoad.png) | ![The starter scene](docs\u002Fimages\u002Fhello.png) |\n\nIt contains:\n\n- **A viewer** built on [three.js](https:\u002F\u002Fthreejs.org) and [Spark](https:\u002F\u002Fgithub.com\u002Fsparkjsdev\u002Fspark).\n- **Scenes written in code**: an island, shapes, grass, lights and particles in one short file.\n- **A converter for ordinary 3D models** (glTF \u002F GLB), including rigged ones that keep their animations.\n- **The examples above**, ready to open.\n\n## Quick start\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Fcobanov\u002Fpixelart-gaussiansplat\ncd pixelart-gaussiansplat\nnpm install\nnpm run dev\n```\n\nOpen the address Vite prints. Drag to orbit, scroll to zoom. The panel on the left switches examples and changes the look (pixel size, dither, palette, supersampling, outlines).\n\nRequires Node 20.19 or newer (22.12 or newer on the 22 line) and a browser with WebGL 2.\n\n## How it works\n\nThe splats are ordinary Gaussian splats; the pixel art comes from how they are drawn.\n\n![Four stages: soft splats, hard low-res discs, palette, dithering](docs\u002Fimages\u002Fpipeline.png)\n\n1. **Splats as surfels** (top left). Every splat is a flat disc lying on a surface. Its rotation stores the surface normal.\n2. **Light baked into scenes.** A scene does not move, so its light is worked out once per splat at build time: soft sun shadows marched through the distance field, lamps that only light what they can see, leaves that let light through. The colour is then picked from the palette within the surface's own hue, with cool shadows and warm light. Converted models, which move, are lit on the GPU every frame.\n3. **Small and hard** (top right). The scene is drawn at twice the art resolution, with the Gaussian falloff switched off. Each 2×2 block becomes one art pixel: object or background, by coverage.\n4. **A palette by vote** (bottom left). Each sample snaps to its nearest palette colour and the pixel takes the one most samples chose, so no pixel is an average of two materials.\n5. **Outlines and light.** A pixel on the silhouette takes a darker shade of its own colour. Translucent light (sun shafts, halos, smoke) is blended over the background and snapped to the palette in its own hue, so a beam is a flat band of muted colour.\n\nOrdered dithering (bottom right) is still there, on the `dither` slider, but off by default.\n\nThe pixel grid is fixed to the screen, so zooming never changes the size of a pixel.\n\n[docs\u002Fhow-it-works.md](docs\u002Fhow-it-works.md) goes through each step, with the files to read.\n\n## Make your own\n\n### A scene\n\nA scene is one JavaScript file. The starter, [`src\u002Fauthoring\u002Fscenes\u002Fhello.js`](src\u002Fauthoring\u002Fscenes\u002Fhello.js), is about 60 lines: an island, a tree, a lantern, 1,500 blades of grass.\n\n```bash\nnpm run scene hello     # builds public\u002Fmodels\u002Fhello.dio, about two seconds\n```\n\n[docs\u002Fmake-a-scene.md](docs\u002Fmake-a-scene.md) walks through it.\n\n### A model\n\nAny glTF or GLB file works: a scan, a sculpt, a model from a generator.\n\n```bash\nnpm run convert path\u002Fto\u002Fmodel.glb mymodel      # the model, as splats\nnpm run island mymodel ruins                   # optional: something to stand on\n```\n\nThen open `\u002F?m=mymodel`. If the model has a skeleton and animation clips, they play. Island themes: `ruins`, `desert`, `swamp`, `crag`, `dais`.\n\n[docs\u002Fbring-your-own-model.md](docs\u002Fbring-your-own-model.md) has the details.\n\n## Layout\n\n```\nsrc\u002F\n  viewer.js            the viewer: loads an example, runs the frame loop\n  viewer\u002F              loaders: models, skeletons, worlds, automatic palettes\n  render\u002F              the look: pixel pass, per-splat lighting, particles, the panel\n  authoring\u002F           what scenes are written with (runs in Node, not in the browser)\n    sdf.js               signed-distance shapes and the surface sampler\n    island.js            the island, shared props, the bake step\n    scene-kit.js         grass, leaves, glows\n    themes.js            islands for models\n    scenes\u002F              one file per scene\n  angler\u002F              a creature modelled and rigged entirely in code\ntools\u002F                 build-scene, convert-model, build-island\npublic\u002Fmodels\u002F         the built examples\n```\n\n## Credits\n\n- [Spark](https:\u002F\u002Fgithub.com\u002Fsparkjsdev\u002Fspark) by World Labs renders the splats and runs the per-splat shaders.\n- [three.js](https:\u002F\u002Fthreejs.org) does everything else in the browser, and [glTF Transform](https:\u002F\u002Fgltf-transform.dev) reads models in the converter.\n- The idea of pixel-art splat dioramas came from posts by [Silicon Jungle](https:\u002F\u002Fx.com\u002FJungleSilicon).\n\n## License\n\nThe code is MIT licensed, see [LICENSE](LICENSE).\n\nThe scenes are generated by the code in this repository and fall under the same license. The converted creature models in `public\u002Fmodels` (minotaur, toad, vulture, hyena, dragon shield) come from the game Kervan and are included as examples only; they are not covered by the MIT license.\n","这是一个在浏览器中实时渲染像素艺术风格高斯溅射（Gaussian Splatting）3D场景的Web项目。它基于Three.js和WebGL，将3D几何或glTF模型转换为具有固定像素网格、有限调色板、硬边缘和有序抖动的复古像素画效果；核心创新在于将高斯溅射作为表面元素（surfels），并在渲染管线中分阶段完成光照烘焙、分辨率下采样、调色板投票与轮廓强化。适用于游戏原型、交互式像素艺术展览、教育演示及轻量级3D可视化等需兼顾表现力与性能的Web端场景。",2,"2026-11-24 04:52:41","CREATED_QUERY"]