Image to Three.js Model
img2threejs/img2threejs
Rebuilds the object in a reference image as a procedural, animation-ready Three.js model written entirely in code, using staged sculpting with quality checks.
Handles mouse, keyboard, and touch input via the IMouse and InputManager systems.
$ npx skills add hexianWeb/Third-Person-MC --skill vtj-input-system -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install hexianWeb/Third-Person-MC vtj-input-system --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/hexianWeb/Third-Person-MC.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agent/skills/vtj-input-system .claude/skills/vtj-input-system && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "vtj-input-system" agent skill from https://github.com/hexianWeb/Third-Person-MC/tree/main/.agent/skills/vtj-input-system into .claude/skills/vtj-input-system/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "vtj-input-system", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/hexianWeb/Third-Person-MC/tree/main/.agent/skills/vtj-input-systemType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add hexianWeb/Third-Person-MC --skill vtj-input-system -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install hexianWeb/Third-Person-MC vtj-input-system --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/hexianWeb/Third-Person-MC.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agent/skills/vtj-input-system .agents/skills/vtj-input-system && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "vtj-input-system" agent skill from https://github.com/hexianWeb/Third-Person-MC/tree/main/.agent/skills/vtj-input-system into .agents/skills/vtj-input-system/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "vtj-input-system", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add hexianWeb/Third-Person-MC --skill vtj-input-system -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install hexianWeb/Third-Person-MC vtj-input-system --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/hexianWeb/Third-Person-MC.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agent/skills/vtj-input-system .cursor/skills/vtj-input-system && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "vtj-input-system" agent skill from https://github.com/hexianWeb/Third-Person-MC/tree/main/.agent/skills/vtj-input-system into .cursor/skills/vtj-input-system/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "vtj-input-system", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/hexianWeb/Third-Person-MC.git --path .agent/skills/vtj-input-system--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add hexianWeb/Third-Person-MC --skill vtj-input-system -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install hexianWeb/Third-Person-MC vtj-input-system --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/hexianWeb/Third-Person-MC.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agent/skills/vtj-input-system .gemini/skills/vtj-input-system && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "vtj-input-system" agent skill from https://github.com/hexianWeb/Third-Person-MC/tree/main/.agent/skills/vtj-input-system into .gemini/skills/vtj-input-system/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "vtj-input-system", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install hexianWeb/Third-Person-MC vtj-input-systemInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add hexianWeb/Third-Person-MC --skill vtj-input-system -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/hexianWeb/Third-Person-MC.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agent/skills/vtj-input-system .github/skills/vtj-input-system && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "vtj-input-system" agent skill from https://github.com/hexianWeb/Third-Person-MC/tree/main/.agent/skills/vtj-input-system into .github/skills/vtj-input-system/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "vtj-input-system", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add hexianWeb/Third-Person-MC --skill vtj-input-system -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install hexianWeb/Third-Person-MC vtj-input-system --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/hexianWeb/Third-Person-MC.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agent/skills/vtj-input-system .opencode/skills/vtj-input-system && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "vtj-input-system" agent skill from https://github.com/hexianWeb/Third-Person-MC/tree/main/.agent/skills/vtj-input-system into .opencode/skills/vtj-input-system/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "vtj-input-system", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
vtj-input-systemHandles mouse, keyboard, and touch input via the IMouse and InputManager systems.
Vtj Input System is an agent skill from hexianWeb/Third-Person-MC. Handles mouse, keyboard, and touch input via the IMouse and InputManager systems. Use when implementing controls, raycasting, or FPS-style PointerLock.
Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Game Development, covering 3D graphics and WebGL. It works with Three.js. The repository describes itself as: Three.js web version Minecraft in browser. The licence is MIT.
2 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 490203c. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are javascript).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Vtj Input System loads about 1.8k tokens when it runs. Until then it costs about 42 tokens; SKILL.md has 177 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from hexianWeb/Third-Person-MC at commit 490203c, republished under its MIT licence (© hexianWeb). 177 words, ~1,783 tokens.
.claude/skills/vtj-input-system/SKILL.md (or your agent's skills folder).本项目使用 三层输入系统:
核心原则:永远使用 iMouse.normalizedMouse 进行射线拾取,永远通过 mitt 事件消费输入。
Window Events (keydown/mousemove/etc)
│
▼
┌────────────────────────────────────────────────────────────┐
│ Input Layer │
│ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ │
│ │ IMouse │ │ InputManager │ │ PointerLock │ │
│ │ (positions) │ │ (key states) │ │ (FPS mouse) │ │
│ └──────┬───────┘ └──────┬───────┘ └──────┬───────┘ │
└─────────┼─────────────────┼─────────────────┼──────────────┘
│ │ │
▼ ▼ ▼
┌────────────────────────────────────────────────────────────┐
│ mitt Event Bus │
│ input:update, input:jump, input:mouse_move │
└────────────────────────────────────────────────────────────┘
│
▼
┌────────────────────────────────────────────────────────────┐
│ Consumer Layer │
│ Player, CameraRig, BlockInteraction, BlockRaycaster │
└────────────────────────────────────────────────────────────┘// 通过 Experience 单例访问
this.iMouse = this.experience.iMouse| 属性 | 类型 | 说明 |
|---|---|---|
normalizedMouse | Vector2 | NDC 坐标 [-1, 1],用于射线拾取 |
mouse | Vector2 | 左下角原点坐标 |
mouseDOM | Vector2 | DOM 坐标 (clientX, clientY) |
mouseScreen | Vector2 | 屏幕中心相对坐标 |
mouseDOMDelta | Vector2 | 帧间位移 |
isMouseMoving | boolean | 鼠标是否移动中 |
// ✅ ALWAYS: 使用 iMouse.normalizedMouse
const ndc = this.iMouse.normalizedMouse
this.raycaster.setFromCamera(ndc, this.camera)
const intersects = this.raycaster.intersectObjects(this.scene.children)
// ❌ NEVER: 手动计算 NDC
const x = (event.clientX / window.innerWidth) * 2 - 1 // 禁止!
const y = -(event.clientY / window.innerHeight) * 2 + 1 // 禁止!屏幕中心射线(第一人称准星):
const CENTER_SCREEN = new THREE.Vector2(0, 0)
this.raycaster.setFromCamera(CENTER_SCREEN, this.camera)| 事件 | 触发条件 | 数据 |
|---|---|---|
input:update | 任意按键变化 | { forward, backward, left, right, shift, space, ... } |
input:jump | 空格键按下 | 无 |
input:punch_straight | Z 键 | 无 |
input:punch_hook | X 键 | 无 |
input:block | C 键 | { isPressed: boolean } |
input:toggle_camera_side | Tab 键 | 无 |
input:mouse_down | 鼠标按下 | `{ button: 0 |
input:mouse_up | 鼠标释放 | `{ button: 0 |
input:wheel | 滚轮 | { deltaY: number } |
ui:escape | ESC 键 | 无 |
import emitter from './utils/event-bus.js'
export default class Player {
constructor() {
// 保存绑定引用以便清理
this._handleInput = this._handleInput.bind(this)
this._handleJump = this._handleJump.bind(this)
emitter.on('input:update', this._handleInput)
emitter.on('input:jump', this._handleJump)
}
_handleInput(keys) {
this.inputState = keys
// keys = { forward: true, backward: false, left: false, right: true, shift: false, ... }
}
_handleJump() {
if (this.movement.isGrounded) {
this.movement.jump()
}
}
destroy() {
emitter.off('input:update', this._handleInput)
emitter.off('input:jump', this._handleJump)
}
}| 事件 | 说明 | 数据 |
|---|---|---|
pointer:locked | 鼠标锁定成功 | 无 |
pointer:unlocked | 鼠标解锁 | 无 |
input:mouse_move | 相对鼠标移动 | { movementX, movementY } |
// 在 CameraRig 中
constructor() {
this._handleMouseMove = this._handleMouseMove.bind(this)
emitter.on('input:mouse_move', this._handleMouseMove)
}
_handleMouseMove({ movementX, movementY }) {
// Y 轴:控制相机俯仰
this.mouseYVelocity += movementY * this.config.sensitivity
// X 轴:通常在 Player 中处理,控制角色朝向
}
destroy() {
emitter.off('input:mouse_move', this._handleMouseMove)
}// 在 Player 中
emitter.on('input:mouse_move', ({ movementX }) => {
this.targetFacingAngle -= movementX * this.config.mouseSensitivity
})用于处理冲突输入(如同时按 W+S):
import { resolveDirectionInput } from './input-resolver.js'
const rawInput = { forward: true, backward: true, left: false, right: true }
const { resolvedInput, weights } = resolveDirectionInput(rawInput)
// resolvedInput = { forward: false, backward: false, left: false, right: true }
// W+S 互相抵消,只保留 D// src/js/utils/input.js
updateKey(key, isDown) {
switch (key) {
case 'KeyQ':
this.keyStates.q = isDown
if (isDown) emitter.emit('input:new_action')
break
// ...
}
}emitter.on('input:new_action', () => {
this.performNewAction()
})import { detectDeviceType } from './tools/dom.js'
const device = detectDeviceType()
if (device === 'Desktop') {
// 键鼠控制
} else {
// 触摸控制
}// BAD: 自己计算
onMouseMove(event) {
const x = (event.clientX / window.innerWidth) * 2 - 1
const y = -(event.clientY / window.innerHeight) * 2 + 1
this.raycaster.setFromCamera(new THREE.Vector2(x, y), this.camera)
}
// GOOD: 使用 IMouse
update() {
const ndc = this.experience.iMouse.normalizedMouse
this.raycaster.setFromCamera(ndc, this.camera)
}// BAD: 绕过输入系统
window.addEventListener('keydown', (e) => {
if (e.code === 'Space') this.jump()
})
// GOOD: 使用 mitt 事件
emitter.on('input:jump', () => this.jump())// BAD: 没有 destroy
constructor() {
emitter.on('input:update', this.handleInput.bind(this))
}
// GOOD: 保存引用并清理
constructor() {
this._boundHandler = this.handleInput.bind(this)
emitter.on('input:update', this._boundHandler)
}
destroy() {
emitter.off('input:update', this._boundHandler)
}// BAD: 每帧检查按键状态
update() {
if (keyboard.isKeyDown('Space')) this.jump() // 会重复触发
}
// GOOD: 事件驱动
emitter.on('input:jump', () => this.jump()) // 只触发一次| 需求 | 使用 |
|---|---|
| 射线拾取坐标 | this.iMouse.normalizedMouse |
| 按键状态 | emitter.on('input:update', ...) |
| 单次按键动作 | emitter.on('input:jump', ...) |
| 鼠标相对移动 | emitter.on('input:mouse_move', ...) |
| 滚轮 | emitter.on('input:wheel', ...) |
| 鼠标点击 | emitter.on('input:mouse_down', ...) |
| 禁止 | 原因 |
|---|---|
| 手动计算 NDC | 不一致,易出错 |
| 直接监听 window 事件 | 绕过输入系统 |
| 匿名事件监听器 | 无法清理 |
© hexianWeb, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agent/skills/vtj-input-system of hexianWeb/Third-Person-MC.
Open the folder on GitHubat commit 490203c
Vtj Input System next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Vtj Input System this skillhexianWeb/Third-Person-MC | 194 | — | ~1.8k | Automated safety check: Pass | MIT | |
| Image to Three.js Modelimg2threejs/img2threejs | 18k | 1 repos | ~8.2k | Automated safety check: Pass | Apache-2.0 | |
| Web CloneJane-xiaoer/claude-skill-web-clone | 1k | 1 repos | ~2.7k | Automated safety check: Pass | MIT | |
| Threejs Game Directormajidmanzarpour/threejs-game-skills | 2.4k | — | ~2.2k | Automated safety check: Pass | MIT | |
| Threejs Gameplay Systemsvalkor-ai/loom | 1.2k | 1 repos | ~1.4k | Automated safety check: Pass | Apache-2.0 | |
| Threejs World Generationcalesthio/OpenMontage | 65k | — | ~2k | Automated safety check: Pass | AGPL-3.0 |
img2threejs/img2threejs
Rebuilds the object in a reference image as a procedural, animation-ready Three.js model written entirely in code, using staged sculpting with quality checks.
Jane-xiaoer/claude-skill-web-clone
网站复刻 / 克隆方法论。USE WHEN 用户说 复刻网站、克隆网站、clone website、抄个站、仿站、 照着这个站做一个、reproduce site、还原某个网页效果、把这个站搬下来改成我的、 复刻某个交互/WebGL/Canvas/Three.js 效果。提供「先拿真源码 → 判路径 → 逆向拆解 → 搭工程 → 替换内容」的可移植决策树,覆盖静态站 /…
majidmanzarpour/threejs-game-skills
Entrypoint for building, upgrading, and finishing Three.js browser games.
valkor-ai/loom
Build and iterate playable Three.js game systems: starter scaffold, architecture, design briefs, core loops, level and encounter design, entities, input, camera, collision and physics, scoring…
calesthio/OpenMontage
Build deterministic, editable, free-viewpoint Three.js worlds from text or structured briefs.
viettranx/3dviz-pro-max
Guides building an expressive 3D scene in Three.js or Blender by reasoning through intent, object construction and scientific grounding before using a catalog of recipes and kits.
hexianWeb/Third-Person-MC
Configures Tweakpane debug panels for 3D components. An agent skill from hexianWeb/Third-Person-MC.
hexianWeb/Third-Person-MC
Configures third-person camera systems with collision avoidance.
hexianWeb/Third-Person-MC
Creates 3D components using the Experience singleton pattern.
hexianWeb/Third-Person-MC
Optimizes Three.js rendering performance. An agent skill from hexianWeb/Third-Person-MC.
hexianWeb/Third-Person-MC
Implements ray picking and collision detection. An agent skill from hexianWeb/Third-Person-MC.
hexianWeb/Third-Person-MC
Loads and manages 3D assets via the Resources system. An agent skill from hexianWeb/Third-Person-MC.
Works with
Categories
Handles mouse, keyboard, and touch input via the IMouse and InputManager systems. Vtj Input System is an agent skill from hexianWeb/Third-Person-MC. Handles mouse, keyboard, and touch input via the IMouse and InputManager systems.
Vtj Input System fits situations like: implementing controls; FPS-style PointerLock.
Run `npx skills add hexianWeb/Third-Person-MC --skill vtj-input-system -a claude-code`. Or copy the skill folder (.agent/skills/vtj-input-system in hexianWeb/Third-Person-MC) into .claude/skills/vtj-input-system in your project. Claude Code loads it when a task matches its description.
Run `npx skills add hexianWeb/Third-Person-MC --skill vtj-input-system -a codex`. Or copy the skill folder (.agent/skills/vtj-input-system in hexianWeb/Third-Person-MC) into .agents/skills/vtj-input-system in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add hexianWeb/Third-Person-MC --skill vtj-input-system -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/vtj-input-system, .gemini/skills/vtj-input-system, .github/skills/vtj-input-system and .opencode/skills/vtj-input-system in your project.
SKILL.md names no scripts, command-line tools or credentials: Vtj Input System is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Vtj Input System is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.8k tokens (SKILL.md is roughly 7.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Vtj Input System: Image to Three.js Model (img2threejs/img2threejs, 18k stars), Web Clone (Jane-xiaoer/claude-skill-web-clone, 1k stars), Threejs Game Director (majidmanzarpour/threejs-game-skills, 2.4k stars) and Threejs Gameplay Systems (valkor-ai/loom, 1.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
hexianWeb (a GitHub user) maintains it in hexianWeb/Third-Person-MC, which has 194 GitHub stars. The repository holds 12 skills in this directory. The repository was last updated on July 27, 2026.
Source: hexianWeb/Third-Person-MC on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.