[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-107593":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":17,"stars90d":14,"forks30d":14,"starsTrendScore":16,"compositeScore":18,"rankGlobal":9,"rankLanguage":9,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":22,"hasPages":20,"topics":23,"createdAt":9,"pushedAt":24,"updatedAt":25,"readmeContent":26,"aiSummary":27,"trendingCount":14,"starSnapshotCount":14,"syncStatus":28,"lastSyncTime":29,"discoverSource":30},107593,"ascii-diorama","JDhruv14\u002Fascii-diorama","JDhruv14","Claude Code skill for tilt-shift ASCII miniature videos rendered with Three.js",null,"JavaScript",112,5,52,0,1,3,32,48.8,"MIT License",false,"main",true,[],"2026-11-02 15:22:37","2026-11-22 22:15:10","# ascii-diorama\n\nA [Claude Code](https:\u002F\u002Fclaude.com\u002Fclaude-code) skill for building **tilt-shift ASCII miniatures**: small, dense, living 3D worlds drawn entirely as coloured monospace characters.\n\nThe camera looks steeply down on a little Three.js diorama and sweeps slowly back and forth while the top and bottom of the view blur away like a scale model. Every pixel is drawn as a glyph:\n- grass as `\u002F | \\` strokes that lean with the wind\n- water as `~ -` with `#` foam\n- stone as `— = #`\n- trees as clusters of `o * +`\n\nEach glyph takes its colour from the 3D render. Up close it reads as text, and from a distance as a painting. It runs live in the browser and loops forever.\n\n## What's inside\n\n```\nSKILL.md                   the skill: look, workflow, tuning, pitfalls\nscripts\u002Fserve.mjs          live preview that rebuilds on every reload\nscripts\u002Ffetch-assets.sh    downloads the starter scene's textures and model\ntemplates\u002Fscene\u002Fmain.js    a complete starter miniature (Three.js)\n```\n\nThe starter scene is a line of red gates running down a green cliff to a turquoise sea. It has stone steps, lanterns, gold and red trees, white flower patches, rocks with rolling foam, a walking fox and drifting petals.\n\nIt contains every system a new scene needs:\n- terrain baking from real textures\n- a sea shader\n- instanced grass, leaves and flowers\n- path props\n- the glyph pass and tilt-shift\n\nSwap what those systems build to make your own world, such as a harbour, a hill village, a gorge, a lighthouse or a rooftop garden.\n\n## Install\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002FJDhruv14\u002Fascii-diorama ~\u002F.claude\u002Fskills\u002Fascii-diorama\n```\n\nClaude Code picks it up automatically. Ask for something like \"an ASCII diorama of a fishing harbour\", or run `\u002Fascii-diorama`.\n\nTo update later:\n\n```bash\ngit -C ~\u002F.claude\u002Fskills\u002Fascii-diorama pull\n```\n\n### Requirements\n\n- Node.js 18+\n- `three` and `esbuild` installed in or above the scene folder:\n  ```bash\n  npm i three esbuild\n  ```\n- A browser with WebGL 2\n\n## Use it by hand\n\nSet up a scene from the starter:\n\n```bash\nmkdir -p my-scene && cp ~\u002F.claude\u002Fskills\u002Fascii-diorama\u002Ftemplates\u002Fscene\u002F* my-scene\u002F\nbash ~\u002F.claude\u002Fskills\u002Fascii-diorama\u002Fscripts\u002Ffetch-assets.sh my-scene\n```\n\nRun it:\n\n```bash\nnode ~\u002F.claude\u002Fskills\u002Fascii-diorama\u002Fscripts\u002Fserve.mjs my-scene\n```\n\nOpen `http:\u002F\u002F127.0.0.1:5173\u002F`. Reload the page after editing `my-scene\u002Fmain.js`, and press Space to pause.\n\nFor a static copy, `index.html`, `build\u002Fmain.js` and `assets\u002F` are everything the page needs.\n\n## How it works\n\n1. Each material writes a surface class (grass, water, stone and so on) into the alpha channel of a half-float render target.\n2. A full-screen shader splits the view into a 200×100 grid. For each cell it samples the render at the matching mip level, reads the class and measures the brightness gradient. It then picks a glyph from a per-class rule, with wind noise for grass and water and edge direction for stone.\n3. The glyph is drawn from a canvas-generated atlas, coloured with the graded render colour, over a dim blurred copy of the scene.\n4. A tilt-shift pass blurs the top and bottom bands on a golden-angle disc.\n\n## Asset licences\n\n`fetch-assets.sh` downloads the following (none of these files are stored in this repo):\n\n| Asset | Source | Licence |\n|---|---|---|\n| Textures: `leafy_grass`, `coast_sand_01`, `aerial_rocks_02`, `castle_wall_slates`, `weathered_planks`, `bark_brown_02` | [Poly Haven](https:\u002F\u002Fpolyhaven.com) | CC0 |\n| Fox model | PixelMannen, via [Khronos glTF Sample Assets](https:\u002F\u002Fgithub.com\u002FKhronosGroup\u002FglTF-Sample-Assets\u002Ftree\u002Fmain\u002FModels\u002FFox) | CC0 |\n| Fox rig and animation | tomkranis | CC BY 4.0, credit required |\n| Fox glTF conversion | @AsoboStudio and @scurest | CC BY 4.0, credit required |\n\nIf what you publish shows the fox, credit tomkranis, @AsoboStudio and @scurest.\n\n## Licence\n\nThe code and skill text in this repository are released under the [MIT License](LICENSE).\n","ascii-diorama 是一个为 Claude Code 设计的技能，用于实时生成具有移轴（tilt-shift）模糊效果的 3D ASCII 微缩场景视频。它基于 Three.js 渲染三维场景，将每个像素映射为带颜色的 ASCII 字符（如草用 `\u002F | \\`、水用 `~ - #`），并通过全屏着色器实现按材质分类的字符化渲染与动态景深模糊。项目支持自定义场景构建，包含地形烘焙、海面着色、实例化植被等完整管线，输出为纯前端、无需后端的循环动画。适用于创意编程、ASCII 艺术实验、交互式数字微缩景观展示及 AI 辅助视觉内容生成等轻量级可视化场景。",2,"2026-11-24 04:32:19","CREATED_QUERY"]