img2threejs
Skill này làm gì
Skill này để AI biến ảnh tham chiếu của vật thể hoặc nhân vật thành một cảnh 3D sẵn sàng cho hoạt ảnh, được dựng từ mã. Skill dành cho người muốn mô hình 3D khớp với một bức ảnh mà không phải tải tài nguyên 3D có sẵn.
Khi nào nên dùng
- ✓Khi bạn có ảnh hoặc bản vẽ của một vật thể và muốn có mô hình 3D cho web.
- ✓Khi bạn muốn một nhân vật 3D cách điệu dựa trên ảnh tham chiếu.
- ✓Khi bạn cần kiểm tra mô hình 3D giống ảnh tham chiếu đến mức nào và sửa các khác biệt.
Liên kết skill
https://github.com/img2threejs/img2threejs/blob/main/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Dựng lại ảnh chiếc ghế này thành mô hình 3D để tôi hiển thị trong một trang web Three.js.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
AI làm việc theo từng giai đoạn, viết mã cho hình dạng, rồi so sánh bản render với ảnh tham chiếu và sửa mô hình trong vòng lặp cho đến khi khớp đủ tốt.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
img2threejs — Image to procedural Three.js
Rebuild the object visible in a reference image as a code-only procedural Three.js model,
gated by a staged sculpting pipeline and an AI-vision self-correction loop. This is
reconstruction-by-code, not photogrammetry, mesh extraction, or downloaded art packs. That
promise governs how the model is built — it says nothing about which file formats it can
subsequently be exported to; an explicitly-selected emission target (--target <kind>) is a
terminal, whole-artifact transform of the already-built model, verified to its own stated limit,
never a second way to build one.
Agent-agnostic: works under Hermes, Claude Code, Codex, or OpenCode. Wherever this doc says "agent vision" or "agent browser tool", use whatever the host provides — native image reading, a browser MCP (playwright/chrome-devtools), the project preview, or a user-supplied screenshot.
This file is the always-loaded router: it holds the order of operations and every hard rule as one
line. The full contract behind each rule lives in the grimoire/ or docs/ file that rule names —
read the named file at the moment you reach that stage, not before.
Canonical shared checkout
Keep one checkout of this repository and let every host enter it through a symlink, so the hosts
execute the same code instead of drifting apart. npx --yes img2threejs@latest install does this
for the hosts it detects (hermes, claude, codex, opencode); it refuses (exit 2) to replace a
link it does not manage, so a hand-made link is never silently swapped for a release copy.
Hermes reads skills per profile: also link ~/.hermes/profiles/<profile>/skills/img2threejs
(the installer writes only ~/.hermes/skills/). Install, manual symlinks, and troubleshooting:
docs/INSTALL.md.
When To Use
The user attaches/points to an object image and wants a procedural Three.js model, a reconstruction/animation/destruction plan, a sculpt spec, or code. Also for material studies, action-ready props, game objects, botanical/mechanical parts, and stylized reconstructions.
Profile preflight (once per run, before forge/next.py)
Domain knowledge (CS2 skins, animated characters, emission targets) lives in plugins, not in this checkout. Pick the profile from the subject, then confirm this environment can start it:
python3 forge/state.py init --help | grep -- --profile # profiles available here
generic/characterare built in: no harness, no plugin, nothing else to check.- A missing domain profile (e.g.
cs2) is a setup gap: never downgrade togenericsilently. Installing it edits the user's machine, so give them the commands indocs/INSTALL.md§3, get their go-ahead, re-check, and continue. - Installed but not listed (wrong
$IMG2_HOME), or a Hermes plugin link:docs/PLUGINS.md. - Then read what the profile's own steps name, at the moment you reach them: the plugin's
SKILL.mdand contracts govern that domain.
Core Promise
Sculpt from a photo, in order — never one-shot a mesh:
- Run
python3 forge/next.py --state .img2threejs/state.json [<spec>]first, at every start, resume, and before every correction iteration. It reports the ordered checklist, exact next command, evidence status, and bounded correction-loop status; it never replaces the spec/pass gates. Obey a hard stop; never continue from memory. - Validate the image is a suitable 3D target (
grimoire/intake/validation_rubric.md). - Assess object class + complexity, then write a
qualityContractbefore any code. - Spec it: component hierarchy, materials, lighting, pivots, sockets, action anchors.
- Build pass-by-pass from blockout → structure → form → material → lighting → interaction → optimization.
- Verify each pass with a screenshot compared against the reference; fail a pass if an identity-defining feature is wrong even when the global score looks fine.
State explicitly when output is approximate/stylized/low-poly. A single image cannot reveal hidden sides or guarantee exact geometry — say so instead of faking confidence.
Mandatory Local State Gate
Conversation context is disposable; .img2threejs/state.json is the local checklist authority.
Initialize once per reconstruction, then gate every step through it:
python3 forge/state.py init --state .img2threejs/stat
Câu hỏi thường gặp
Nó có quét hay sao chép vật thể không?
Không. Skill mô tả việc dựng lại chỉ bằng mã, không phải photogrammetry hay trích xuất lưới.
Nó có xuất file không?
Skill đề cập tới việc xuất tùy chọn sang các định dạng khác cho đích đã chọn, sau khi mô hình được dựng xong.
Tôi cần cung cấp gì?
Một ảnh tham chiếu. AI có thể dùng công cụ trình duyệt để xem bản render của chính nó trong lúc kiểm tra.
Chi tiết
Mô tả gốc của tác giả
Turn an object or character reference image into a quality-gated, animation-ready procedural Three.js model built in code. Use for image-to-3D reconstruction, detail-accurate object rebuilds, stylized/likeness-maximized human characters, sculpt specs, and staged code generation.
repo: img2threejs/img2threejs
Độ phổ biến
- Sao GitHub
- 20k
- Vị trí xếp hạng
- #10388
- Giấy phép
- Apache-2.0
- Cập nhật
- 28/10/2026
Bình luận
- …
Skill tương tự
gifgrep
394kCho phép agent của bạn tìm thư viện GIF, xem trước kết quả, tải một GIF, và lấy một khung hình tĩnh hoặc bảng ghép nhiều khung hình.
meme-maker
394kCho phép agent của bạn chọn một mẫu meme, thêm chú thích của riêng bạn và tạo meme dưới dạng ảnh SVG hoặc PNG.
ios-icon-gen
280kGiúp agent tạo biểu tượng cho ứng dụng iOS. Dùng biểu tượng của Apple hoặc từ các nguồn khác để tạo đúng định dạng tệp.