MCPInstall

threejs-camera

three.js cameras: Camera base, PerspectiveCamera, OrthographicCamera, CubeCamera, ArrayCamera, StereoCamera; projection matrices, aspect, FOV, orthographic frustum sizes, near/far planes, and dynamic environment maps with CubeCamera. Use when placing views, rendering reflections, or multi-view splits; for XR projections and eye matrices use threejs-webxr; for post pass camera tricks use threejs-postprocessing alongside threejs-renderers.

Installs
410
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/full-stack-skills/threejs-skills --skill threejs-camera
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads threejs-camera automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

When to use this skill

ALWAYS use this skill when the user mentions:

  • Switching perspective vs orthographic, fov, aspect, zoom, near, far
  • CubeCamera for real-time environment maps or reflections (update rate caveats)
  • ArrayCamera/StereoCamera for multi-view or stereo off-axis projection (non-XR)

IMPORTANT: camera vs webxr vs post

TopicSkill
Standard desktop projectionthreejs-camera
XR reference spaces, IPDthreejs-webxr
Offscreen pass cameras inside composerthreejs-postprocessing

Trigger phrases include:

  • "PerspectiveCamera", "OrthographicCamera", "CubeCamera", "aspect", "near", "far"
  • "透视相机", "正交", "立方体相机"

How to use this skill

  1. Perspective: set aspect = width/height; update on resize (threejs-renderers example workflow).
  2. Orthographic: define left/right/top/bottom in world units for CAD/2.5D views.
  3. Near/far: balance depth precision vs containing scene bounds; relate to fog (threejs-scenes).
  4. CubeCamera: position at reflection probe; call update when scene static enough; use render target outputs per docs.
  5. Stereo/Array: advanced; cite docs for eye parameters; defer XR to threejs-webxr.
  6. Projection matrix: call updateProjectionMatrix() after parameter edits.
  7. Helpers: CameraHelper lives in threejs-helpers.

See examples/workflow-perspective-resize.md.

Doc map (official)

Scope

  • In scope: Core camera classes and parameters; cube/array/stereo overview.
  • Out of scope: WebXR reference spaces, eye matrices, session lifecycle (threejs-webxr); shadow map camera tuning (threejs-lights); pass-internal cameras in composer (threejs-postprocessing).

Common pitfalls and best practices

  • Wrong aspect after resize stretches image—always sync with canvas.
  • Too small near hurts depth precision in large worlds.
  • CubeCamera every frame is expensive—throttle for performance.

Documentation and version

Camera parameters and CubeCamera update behavior follow the Cameras section of three.js docs. WebXR uses different projection paths—hand off to threejs-webxr when the user mentions headsets or reference spaces.

Agent response checklist

When answering under this skill, prefer responses that:

  1. Link PerspectiveCamera, OrthographicCamera, or CubeCamera as relevant.
  2. Pair resize with threejs-renderers setSize / DPR patterns when relevant.
  3. Route XR/WebXRManager questions to threejs-webxr after one-line renderer mention.
  4. Mention updateProjectionMatrix() after intrinsic changes.
  5. Use threejs-helpers CameraHelper for shadow frustum debug when discussing lights.

References

Keywords

English: perspectivecamera, orthographiccamera, cubecamera, projection, aspect, near, far, three.js

中文: 相机、透视、正交、投影、近裁剪、远裁剪、CubeCamera、three.js

FAQ

What does the threejs-camera skill do?

three.js cameras: Camera base, PerspectiveCamera, OrthographicCamera, CubeCamera, ArrayCamera, StereoCamera; projection matrices, aspect, FOV, orthographic frustum sizes, near/far planes, and dynamic environment maps with CubeCamera. Use when placing views, rendering reflections, or multi-view splits; for XR projections and eye matrices use threejs-webxr; for post pass camera tricks use threejs-postprocessing alongside threejs-renderers.

How do I install threejs-camera?

Run npx skills add https://github.com/full-stack-skills/threejs-skills --skill threejs-camera in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/threejs-camera/ (personal) or .claude/skills/threejs-camera/ (project).

Which AI agents can use threejs-camera?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is threejs-camera safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains threejs-camera?

It is published by full-stack-skills in full-stack-skills/threejs-skills. It has 410 recorded installs.

More from full-stack-skills/threejs-skills

View all →

threejs-postprocessing

full-stack-skills/threejs-skills

Addon screen-space post-processing for three.js using EffectComposer, Pass base class, RenderPass, and stock passes such as UnrealBloomPass, SSAOPass, SSRPass, BokehPass, OutlinePass, FXAAPass/SMAAPass, TAARenderPass, and ShaderPass; references the Shaders addon group for underlying shader modules; contrasts with core PostProcessing class used in node/WebGPU stacks (see threejs-node-tsl and threejs-renderers). Use when building composer chains—not for basic renderer tone mapping alone (threejs-renderers).

Business & Finance404 installs

threejs-objects

full-stack-skills/threejs-skills

three.js scene graph objects: Object3D transforms and hierarchy, Group, Mesh, InstancedMesh, SkinnedMesh, BatchedMesh, LOD, Line/LineLoop/LineSegments, Points, Sprite, Bone, Skeleton, ClippingGroup; interaction via Raycaster, Layers masks, and EventDispatcher patterns. Merges the former interaction scope—use for picking and layers; for pure vector math without scene graph use threejs-math; for playing skeletal clips use threejs-animation; for frustum culling internals see camera docs.

threejs-materials

full-stack-skills/threejs-skills

Open the skill to read its SKILL.md instructions.

394 installs

threejs-animation

full-stack-skills/threejs-skills

Open the skill to read its SKILL.md instructions.

Frontend & Design391 installs

threejs-renderers

full-stack-skills/threejs-skills

Open the skill to read its SKILL.md instructions.

390 installs

threejs-dev-setup

full-stack-skills/threejs-skills

Bootstrap and toolchain guidance for three.js applications using npm, Vite/Webpack/Rollup, bare ESM import maps, and TypeScript. Covers canonical import paths for three core versus three/addons/ (examples/jsm re-exports), version alignment with https://threejs.org/docs/, and fixing "module not found" for loaders and controls. Use when scaffolding a new 3D project, migrating bundler, or debugging resolution of addons—do not use for rendering API details (see threejs-renderers) or asset loading logic (see threejs-loaders).

Popular other skills

View category →

hyperframes-cli

heygen-com/hyperframes

The HyperFrames CLI by job - scaffold, check, look at frames, edit the timeline, preview, render locally or in the cloud, publish, project history - plus reading its JSON and recovering from build or render failures.

1.3M installs

triage

mattpocock/skills

Move issues and external PRs through a state machine of triage roles, categorise, verify, grill if needed, and write agent-ready briefs.

1M installs

ask-matt

mattpocock/skills

Ask which skill or flow fits your situation. A router over the skills in this repo.

778.4K installs

to-questionnaire

mattpocock/skills

Turn a decision you can't fully answer into a questionnaire for someone else to fill in.

508.9K installs

wait-what

mattpocock/skills

Stop. That last message did not land: re-pitch it.

459.7K installs

loop-me

mattpocock/skills

Grill me about specs for the workflows I want to build, within this workspace.

447.9K installs