[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-116453":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":18,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":23,"topics":24,"createdAt":10,"pushedAt":30,"updatedAt":31,"readmeContent":32,"aiSummary":33,"trendingCount":15,"starSnapshotCount":15,"syncStatus":34,"lastSyncTime":35,"discoverSource":36},116453,"sketch-to-3d","dannystuart\u002Fsketch-to-3d","dannystuart","A Claude skill that turns any 3D model into a marker sketch that draws itself on, then wipes to the real render. Video or live on the web.","https:\u002F\u002Fdannystuart.github.io\u002Fsketch-to-3d\u002F",null,"JavaScript",85,4,54,0,6,22,25,67.3,"MIT License",false,"main",true,[25,26,27,28,29],"3d","claude-code","claude-skill","sketch","threejs","2026-11-09 15:54:05","2026-11-23 12:46:03","# sketch-to-3d\n\n**A skill for Claude that turns any 3D model into a marker sketch that draws itself on, then wipes to the real render.**\nYou get a video at any size, or a live version for your website.\n\n\u003Cp align=\"center\">\u003Cimg src=\"docs\u002Fpreview.gif\" width=\"360\" alt=\"A boombox drawn as a red marker sketch, coloured in, then wiped to the real 3D render\">\u003C\u002Fp>\n\n**[See it live →](https:\u002F\u002Fdannystuart.github.io\u002Fsketch-to-3d\u002F)**\n\nThe drawing goes in the order a designer would: circles on the round parts, a construction box, the outer lines, a faint pencil pass, darker tracing, marker fill with a hatched shadow, colour, and then a wipe to the real thing. About seven seconds.\n\nWorks with **GLB, GLTF, OBJ, FBX, STL, PLY, USDZ, 3MF and DAE** files, objects built in three.js code, and existing three.js scenes.\n\n---\n\n## Install\n\nYou need [Claude Code](https:\u002F\u002Fclaude.com\u002Fclaude-code), [Node 18 or newer](https:\u002F\u002Fnodejs.org), [git](https:\u002F\u002Fgit-scm.com) and [ffmpeg](https:\u002F\u002Fffmpeg.org\u002Fdownload.html) (on a Mac: `brew install ffmpeg`). [pnpm](https:\u002F\u002Fpnpm.io) is optional; npm works too.\n\nPaste these into a terminal, one line at a time:\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Fdannystuart\u002Fsketch-to-3d.git ~\u002F.claude\u002Fskills\u002Fsketch-to-3d\n```\n\n```bash\ncd ~\u002F.claude\u002Fskills\u002Fsketch-to-3d\n```\n\n```bash\npnpm install\n```\n\n(No pnpm? `npm install` does the same.)\n\n```bash\nnpx playwright install chromium\n```\n\nThat last one downloads the browser the skill draws in: about 500 MB, once. If that exact version is already on your computer, it finishes straight away.\n\n**Check it works.** This takes a few seconds and saves five pictures of a desk lamp, one per stage, in `test-lamp\u002Fstills\u002F`, plus a `report.json`:\n\n```bash\nnode scripts\u002Frender.mjs --code evals\u002Flamp-code-video\u002Ffiles\u002Flamp.js --out test-lamp --only stills\n```\n\nYou should see three lines starting with `ok`. A line starting with `FAIL` is the skill's self-check saying something needs adjusting, usually the framing (`--fit`). Claude reads these and fixes them for you.\n\nThen start a new Claude Code session so it picks up the skill.\n\n## What to say to Claude\n\nPlain words are enough. Claude picks the size, paper and framing, shows you stills of each stage first, then makes the video.\n\n> Make a marker sketch video of chair.glb, square, for Instagram.\n\n> I built a desk lamp in three.js code (lamp.js). Turn it into a sketch-to-render video, widescreen, and give me a see-through version I can drop over other footage in Premiere.\n\n> Make a red-paper sketch of boombox.glb. Skip the colour, go straight from the sketch to the real thing. Frame it a bit tighter.\n\n> I've got a kettle as an OBJ. Put it on my product page so it sketches itself in as people scroll, and they can drag to spin it at the end.\n\n> Just the sketch of my chair, no render, on pencil paper.\n\n## What you get\n\n**Video** (`render.mjs`)\n\n| File | What it is |\n|---|---|\n| `\u003Cname>.mp4` | The draw-on video, any size |\n| `\u003Cname>-seethrough.mov` | Optional. The paper is see-through, for laying over other footage |\n| `stills\u002F*.png` | One picture per stage, for checking before the video is made. With a see-through version, also `seethrough-check.png` |\n| `moments.png` | Ten frames on one sheet, for review |\n| `report.json` | What's in the model, any warnings, and the self-checks |\n\n**Web** (`web.mjs`)\n\n| File | What it is |\n|---|---|\n| `sketch-to-3d\u002F` | The only folder that goes on your site: the player (three.js included), your model, a poster image |\n| `index.html` | A preview page with a tab for each way of playing, each with its own code |\n| `snippet.html` | The code to paste: plain HTML (Webflow and Framer embeds too) and a React \u002F Next.js component |\n| `report.json` | The checks, and the folder's size |\n\nThe web version can play on load, when it scrolls into view, tied to scrolling, pinned while the page scrolls past, on hover or on click. It can hold on the render, loop, or let people drag to turn it. People who turn off motion in their settings see the finished render straight away. More in [references\u002Fweb.md](references\u002Fweb.md).\n\n## Run it yourself\n\nYou don't need Claude to use it. From the skill folder:\n\n```bash\nnode scripts\u002Frender.mjs chair.glb --out chair --size 1080x1080\n```\n\n```bash\nnode scripts\u002Fweb.mjs chair.glb --out chair-web --play scroll --end spin\n```\n\nFor an object built in code, use `--code lamp.js` instead of a model file. The file exports `default (THREE) => Object3D`.\n\nTo preview the web version, the page has to be served over http, because a page opened straight from disk can't load the model. In the output folder:\n\n```bash\npython3 -m http.server 8000 --bind 127.0.0.1\n```\n\nThen open `http:\u002F\u002F127.0.0.1:8000`.\n\n## Options\n\nThese work for both `render.mjs` and `web.mjs`.\n\n| Option | What it does |\n|---|---|\n| `--size WxH` | Frame size. `1080x1920` vertical, `1080x1080` square, `1920x1080` wide, `3840x2160` 4K. Video default `1080x1920`, web default `1080x1080` |\n| `--pal` | Paper and ink: `whitePaper` (default), `redSheet`, `pencil`, `blueprint` |\n| `--look` | `marker` (default) or `classic`, an earlier, plainer look |\n| `--az 38 --el 24` | Camera angle in degrees: around, and up |\n| `--rot`, `--rotX` | Turn the object itself, for models that face the wrong way or lie on their side |\n| `--fit 1.35` | Framing. Smaller is closer |\n| `--aim x,y,z` | Move the aim point, as a share of the object's size. `0,-0.12,0` moves the object up the frame |\n| `--turn 2.2` | How fast the camera turns while drawing, in degrees per second. `0` holds it still |\n| `--no-colour` | Skip the colour stage |\n| `--stop sketch\\|colour` | End on the finished sketch, or on the colour stage, instead of the render |\n| `--studio '#hex'` | The render's background colour |\n| `--hold 1` | Extra seconds on the finished render at the end |\n| `--drop a,b` | Leave out parts or materials by name (stands, floors, backdrops) |\n| `--tone name=skip` | Per material: `skip` (hide it, e.g. clear glass over a dial), `dark`, `mid`, `light` |\n| `--no-circles` | No circle guides |\n| `--only stills` | `render.mjs`: just the stills and report, in seconds |\n| `--at 1,2.5` | `render.mjs`: also save single frames at these seconds |\n| `--alpha` | `render.mjs`: also write a see-through `.mov` (a few times the size of the mp4). Mac only. Opens in Final Cut, DaVinci, Keynote, and Premiere on a Mac |\n| `--prores` | `render.mjs`: a see-through `.mov` that opens in any editor and can be made on any computer. About 20x larger |\n| `--play`, `--end` | `web.mjs`: how it plays and how it ends. See [references\u002Fweb.md](references\u002Fweb.md) |\n\n## Good to know\n\n- **Made objects work best.** Raw 3D scans have no clean edges, so they come out as scribble.\n- **Bending (rigged) parts and point clouds aren't drawn.** Moving rigid parts are fine.\n- **Stands and floors** get drawn as part of the object unless you leave them out with `--drop`.\n- **Clear glass** over a dial or screen hides what's under it in the sketch. `--tone \u003Cglass material>=skip` fixes that.\n- **Big models** make heavy web pages. The report flags anything over 8 MB.\n- **A 7-second 1080p video takes about 30 seconds** to make on a recent laptop, and about twice that with a see-through version.\n- **White or uncoloured models** (an OBJ with no materials, say) end as a white render on near-white paper. Ask for a darker background, or use `--studio '#hex'`.\n\n## What's in this repo\n\n| Folder | What it is |\n|---|---|\n| `SKILL.md` | The instructions Claude reads |\n| `engine\u002F` | The drawing itself (three.js) and the web player |\n| `scripts\u002F` | `render.mjs` (video) and `web.mjs` (web) |\n| `references\u002F` | More detail on the web version |\n| `evals\u002F` | Three test cases: a lamp in code, a boombox GLB and a kettle OBJ |\n| `site\u002F` | The demo page. Not needed to use the skill |\n| `docs\u002F` | The preview image above |\n\n## Credits\n\n- Boombox and Alarm Clock 01 models from [Poly Haven](https:\u002F\u002Fpolyhaven.com), released as CC0.\n- The lamp and kettle were made for this project.\n- Built on [three.js](https:\u002F\u002Fthreejs.org) (MIT), with [Playwright](https:\u002F\u002Fplaywright.dev) and [esbuild](https:\u002F\u002Fesbuild.github.io) for recording and packing.\n\n## Licence\n\n[MIT](LICENSE). Use it for anything, including client work.\n","sketch-to-3d 是一个为 Claude Code 设计的技能，可将任意 3D 模型（支持 GLB、GLTF、OBJ 等 9 种格式）自动生成手绘风格动画：先以红笔\u002F铅笔逐层绘制线稿（含构造框、轮廓、阴影、上色），再平滑擦除过渡至真实渲染效果。基于 Three.js 实现，支持导出 MP4 视频或嵌入网页的实时交互版本（含滚动触发、拖拽旋转）。适用于产品展示页、设计提案、社交媒体内容及营销视频制作，强调可视化叙事与技术演示的自然衔接。",2,"2026-11-24 04:53:34","CREATED_QUERY"]