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.
Configures third-person camera systems with collision avoidance.
$ npx skills add hexianWeb/Third-Person-MC --skill vtj-camera-system -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install hexianWeb/Third-Person-MC vtj-camera-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-camera-system .claude/skills/vtj-camera-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-camera-system" agent skill from https://github.com/hexianWeb/Third-Person-MC/tree/main/.agent/skills/vtj-camera-system into .claude/skills/vtj-camera-system/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "vtj-camera-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-camera-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-camera-system -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install hexianWeb/Third-Person-MC vtj-camera-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-camera-system .agents/skills/vtj-camera-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-camera-system" agent skill from https://github.com/hexianWeb/Third-Person-MC/tree/main/.agent/skills/vtj-camera-system into .agents/skills/vtj-camera-system/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "vtj-camera-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-camera-system -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install hexianWeb/Third-Person-MC vtj-camera-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-camera-system .cursor/skills/vtj-camera-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-camera-system" agent skill from https://github.com/hexianWeb/Third-Person-MC/tree/main/.agent/skills/vtj-camera-system into .cursor/skills/vtj-camera-system/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "vtj-camera-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-camera-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-camera-system -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install hexianWeb/Third-Person-MC vtj-camera-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-camera-system .gemini/skills/vtj-camera-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-camera-system" agent skill from https://github.com/hexianWeb/Third-Person-MC/tree/main/.agent/skills/vtj-camera-system into .gemini/skills/vtj-camera-system/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "vtj-camera-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-camera-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-camera-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-camera-system .github/skills/vtj-camera-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-camera-system" agent skill from https://github.com/hexianWeb/Third-Person-MC/tree/main/.agent/skills/vtj-camera-system into .github/skills/vtj-camera-system/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "vtj-camera-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-camera-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-camera-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-camera-system .opencode/skills/vtj-camera-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-camera-system" agent skill from https://github.com/hexianWeb/Third-Person-MC/tree/main/.agent/skills/vtj-camera-system into .opencode/skills/vtj-camera-system/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "vtj-camera-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-camera-systemConfigures third-person camera systems with collision avoidance.
Vtj Camera System is an agent skill from hexianWeb/Third-Person-MC. Configures third-person camera systems with collision avoidance. Use when adjusting follow behavior, implementing camera modes, or handling cave/obstacle detection.
Its SKILL.md is about 1.9k 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 Camera System loads about 1.9k tokens when it runs. Until then it costs about 46 tokens; SKILL.md has 81 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). 81 words, ~1,853 tokens.
.claude/skills/vtj-camera-system/SKILL.md (or your agent's skills folder).本项目采用 第三人称相机系统,核心组件:
核心原则:相机通过锚点跟随玩家,使用 lerp 平滑过渡,通过方块检测避免穿模。
┌─────────────────────────────────────────────────────────────┐
│ Camera │
│ - mode: 'third-person' | 'bird-perspective' │
│ - perspectiveCamera: THREE.PerspectiveCamera │
│ - orbitControls: OrbitControls (鸟瞰模式用) │
│ - rig: CameraRig (第三人称用) │
└─────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────┐
│ CameraRig │
│ - group: THREE.Group (跟随玩家位置) │
│ - cameraAnchor: THREE.Object3D (相机位置锚点) │
│ - targetAnchor: THREE.Object3D (看向目标锚点) │
│ - _smoothedPosition: 平滑后的位置 │
│ - _smoothedLookAtTarget: 平滑后的看向点 │
└─────────────────────────────────────────────────────────────┘// 锚点附着在 group 上,group 跟随玩家
this.group = new THREE.Group()
this.cameraAnchor = new THREE.Object3D() // 相机实际位置
this.targetAnchor = new THREE.Object3D() // 相机看向的点
// 锚点相对于玩家的偏移
this.cameraAnchor.position.copy(this.config.follow.offset) // (2, 1.5, 3)
this.targetAnchor.position.copy(this.config.follow.targetOffset) // (0, 1.5, -5.5)
this.group.add(this.cameraAnchor)
this.group.add(this.targetAnchor)update() {
const playerPos = this.target.position
const facingAngle = this.target.facingAngle
// 平滑位置插值
this._smoothedPosition.lerp(playerPos, this.config.follow.smoothSpeed)
this.group.position.copy(this._smoothedPosition)
// 同步角色朝向
this.group.rotation.y = facingAngle
// 获取世界坐标
const cameraPos = this.cameraAnchor.getWorldPosition(new THREE.Vector3())
const targetPos = this.targetAnchor.getWorldPosition(new THREE.Vector3())
// 平滑看向点
this._smoothedLookAtTarget.lerp(targetPos, this.config.follow.lookAtSmoothSpeed)
return { cameraPos, targetPos: this._smoothedLookAtTarget, fov: this._currentFov }
}// src/js/camera/camera-rig-config.js
export const CAMERA_RIG_CONFIG = {
follow: {
offset: new THREE.Vector3(2, 1.5, 3.0), // 相机位置偏移
targetOffset: new THREE.Vector3(0, 1.5, -5.5), // 看向点偏移
smoothSpeed: 0.1, // 位置平滑系数 (0-1)
lookAtSmoothSpeed: 0.45, // 看向平滑系数
mouseTargetY: {
sensitivity: 0.030, // 鼠标 Y 轴灵敏度
maxOffset: 4.5, // 最大俯仰偏移
returnSpeed: 1.5, // 回中速度
damping: 3.5, // 阻尼
},
},
trackingShot: {
fov: { baseFov: 55, maxFov: 85, speedThreshold: 3.0 },
bobbing: {
verticalFrequency: 4.0,
verticalAmplitude: 0.025,
horizontalFrequency: 4.0,
horizontalAmplitude: 0.015,
rollFrequency: 4.0,
rollAmplitude: 0.005,
idleBreathing: { enabled: true, frequency: 0.7, amplitude: 0.015 },
},
},
}本项目使用 方块检测 而非射线检测来处理相机穿模:
_checkBlockAbovePlayer(playerPos) {
const checkHeights = [2, 3] // 玩家头顶上方
const checkRange = [-1, 0, 1] // 3x3 XZ 区域
let blockCount = 0
for (const heightOffset of checkHeights) {
for (const dx of checkRange) {
for (const dz of checkRange) {
const block = terrainManager.getBlockWorld(
playerPos.x + dx,
playerPos.y + heightOffset,
playerPos.z + dz
)
if (block && block.id !== 0) blockCount++
if (blockCount >= 4) return true // 判定为在洞穴中
}
}
}
return false
}if (isInCave) {
// 切换到近距离偏移
this._caveOffset = new THREE.Vector3(0.0, 1.5, 1.0)
this._caveTargetOffset = new THREE.Vector3(0, 1.5, -1.5)
// 淡化玩家模型
this.target.setOpacity(0.1)
} else {
// 恢复正常偏移
this.target.setOpacity(1.0)
}toggleSide() {
this._currentSide *= -1 // 1 → -1 或 -1 → 1
gsap.to(this, {
_sideFactor: this._currentSide,
duration: 0.6,
ease: 'power2.inOut',
})
}
// 应用到 X 偏移
this.config.follow.offset.x = this._targetOffset.x * this._sideFactor触发方式:
emitter.on('input:toggle_camera_side', () => this.toggleSide())_updateDynamicFov(speed) {
const { baseFov, maxFov, speedThreshold } = this.config.trackingShot.fov
const speedRatio = Math.min(speed / speedThreshold, 1.0)
const targetFov = baseFov + (maxFov - baseFov) * speedRatio
this._currentFov += (targetFov - this._currentFov) * smoothSpeed
}CameraRig 监听以下事件:
constructor() {
emitter.on('input:mouse_move', ({ movementY }) => {
this.mouseYVelocity += movementY * this.config.sensitivity
})
emitter.on('input:wheel', ({ deltaY }) => {
this._normalOffset.y += deltaY * sensitivity
})
emitter.on('input:toggle_camera_side', () => this.toggleSide())
emitter.on('settings:camera-rig-changed', ({ fov, bobbing }) => {
// 更新配置
})
}// 在组件中
this.camera = this.experience.camera // Camera 类实例
this.cameraInstance = this.experience.camera.instance // THREE.Camera
// Camera 类提供的方法
this.experience.camera.switchMode('bird-perspective')
this.experience.camera.attachRig(player)// camera.js
this.cameraModes = {
THIRD_PERSON: 'third-person',
BIRD_PERSPECTIVE: 'bird-perspective',
FIRST_PERSON: 'first-person', // 新增
}switchMode(mode) {
this.currentMode = mode
switch (mode) {
case 'first-person':
this.rig?.disable()
this.orbitControls.enabled = false
// 第一人称特殊处理
break
// ...
}
}// BAD: 直接设置相机位置
this.camera.instance.position.set(0, 5, 10)
// GOOD: 通过 CameraRig 控制
this.camera.rig.setOffset(new THREE.Vector3(0, 5, 10))// BAD: 直接赋值(相机会跳跃)
this.group.position.copy(playerPos)
// GOOD: 使用 lerp 平滑
this._smoothedPosition.lerp(playerPos, smoothSpeed)
this.group.position.copy(this._smoothedPosition)// BAD: 复杂的射线碰撞检测
this.raycaster.set(cameraPos, direction)
const intersects = this.raycaster.intersectObjects(terrain)
// GOOD: 使用方块检测(本项目特有)
const isInCave = this._checkBlockAbovePlayer(playerPos)| 需求 | 方法 |
|---|---|
| 获取相机实例 | this.experience.camera.instance |
| 切换相机模式 | this.experience.camera.switchMode('mode') |
| 调整跟随平滑度 | 修改 config.follow.smoothSpeed |
| 切换左右肩膀 | rig.toggleSide() |
| 响应设置变化 | 监听 settings:camera-rig-changed |
| 配置项 | 说明 |
|---|---|
follow.offset | 相机相对玩家的位置偏移 |
follow.targetOffset | 看向点相对玩家的偏移 |
follow.smoothSpeed | 位置平滑系数 (0-1) |
trackingShot.fov | 动态 FOV 配置 |
trackingShot.bobbing | 行走晃动配置 |
© 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-camera-system of hexianWeb/Third-Person-MC.
Open the folder on GitHubat commit 490203c
Vtj Camera 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 Camera System this skillhexianWeb/Third-Person-MC | 194 | — | ~1.9k | 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
Creates 3D components using the Experience singleton pattern.
hexianWeb/Third-Person-MC
Handles mouse, keyboard, and touch input via the IMouse and InputManager systems.
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
Configures third-person camera systems with collision avoidance. Vtj Camera System is an agent skill from hexianWeb/Third-Person-MC. Configures third-person camera systems with collision avoidance.
Vtj Camera System fits situations like: adjusting follow behavior; implementing camera modes; handling cave/obstacle detection.
Run `npx skills add hexianWeb/Third-Person-MC --skill vtj-camera-system -a claude-code`. Or copy the skill folder (.agent/skills/vtj-camera-system in hexianWeb/Third-Person-MC) into .claude/skills/vtj-camera-system in your project. Claude Code loads it when a task matches its description.
Run `npx skills add hexianWeb/Third-Person-MC --skill vtj-camera-system -a codex`. Or copy the skill folder (.agent/skills/vtj-camera-system in hexianWeb/Third-Person-MC) into .agents/skills/vtj-camera-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-camera-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-camera-system, .gemini/skills/vtj-camera-system, .github/skills/vtj-camera-system and .opencode/skills/vtj-camera-system in your project.
SKILL.md names no scripts, command-line tools or credentials: Vtj Camera 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 Camera 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.9k tokens (SKILL.md is roughly 7.4k 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 Camera 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.