AI Skill MartBrowse skillsPromptsProgramsLearnWhat is a Skill?
← Back to list

Three.js Interaction

A reference skill for raycast picking, camera controls, transform gizmos, dragging, hover and box selection in three.js, working the same under WebGL and WebGPU.

Dev & CodingIntermediate★ 497⑂ 55AI score 9/10Last updated: Nov 24, 2026

What it does

  • Generates correct Raycaster picking code, including canvas-relative NDC math so hit testing works when the page scrolls or the canvas is embedded.
  • Covers construction and per-frame update patterns for OrbitControls, MapControls, FlyControls, FirstPersonControls, PointerLockControls and TrackballControls.
  • Shows how to wire TransformControls gizmos, DragControls, and marquee selection with SelectionBox/SelectionHelper.
  • Adds world↔screen coordinate conversion, a WebGPURenderer variant, and a long list of version-specific mistakes (r168/r183 API renames, Clock → Timer).

Who it's for

  • Frontend developers building three.js product viewers, 3D editors or map/scene navigation UIs.
  • Anyone who wants mouse, touch and pen handled by a single set of pointer events.
  • Developers stuck on outdated snippets (getObject(), activate(), clock.getDelta()) that no longer work on recent three.js.

Examples

  1. "Highlight a mesh on click and change the cursor on hover" → raycast selection + hover feedback code.
  2. "Let me move objects with a gizmo without the camera orbiting at the same time" → TransformControls plus the dragging-changed toggle.
  3. "Drag a rectangle to select multiple objects" → SelectionBox and SelectionHelper setup with the required CSS caveat.

· · · Install guide · · ·

Try it now, no install

Paste this into Claude to use the skill without installing anything.

Read the instructions in this file and follow them to help me:
https://raw.githubusercontent.com/aiskillstore/marketplace/HEAD/pending/cloudai-x/threejs-interaction/SKILL.md

What I want: (describe your task here)

If Claude can't open the link, open it yourself and paste the contents instead.

↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.

Install in the Claude app (no terminal)
  1. Download the ZIP with the button below.
  2. In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
  3. Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
↓ Download ZIP
Install in Claude Code

Let Claude do it — paste this into Claude Code

Install the skill I found on AI Skill Mart.
Copy the pending/cloudai-x/threejs-interaction folder from the GitHub repo aiskillstore/marketplace into my ~/.claude/skills/threejs-interaction/.
When it's done, tell me in one line what this skill can do.

Install with a command instead

git clone https://github.com/aiskillstore/marketplace.git /tmp/aiskillstore && mkdir -p ~/.claude/skills && cp -r /tmp/aiskillstore/pending/cloudai-x/threejs-interaction ~/.claude/skills/

⚠ This is a third-party skill. Check the source repository before installing.

  1. Open a terminal.
  2. Clone the repository: git clone https://github.com/aiskillstore/marketplace.git /tmp/aiskillstore
  3. Create the skills folder: mkdir -p ~/.claude/skills
  4. Copy the skill in: cp -r /tmp/aiskillstore/pending/cloudai-x/threejs-interaction ~/.claude/skills/
  5. Verify that ~/.claude/skills/threejs-interaction/SKILL.md exists.
  6. Restart Claude Code and ask something like "add click detection for my three.js meshes" — the skill triggers automatically.