Free

Three.js Skills: set up cameras, lights and 3D controls

Choose relevant Three.js Skills and build a first 3D scene with Codex. Check cameras, lights, materials, model loading and touch controls.

Tools

Install a skill in Codex · Download source code (ZIP)

Three.js Skills helps Codex work with a 3D scene: cameras, lights, materials, model loading and mouse or touch interaction. It is a third-party instruction collection, not the Three.js library itself or a generator of finished models.

Tool features

Use it for an interactive product view or practice scene. Start with a simple shape, check that it is visible and controllable, then replace it with a permitted product model. If a photograph solves the task, avoid adding an unnecessary 3D scene.

The skills folder covers fundamentals, geometry, materials, lighting, textures, animation, loaders, shaders, post-processing and interaction. Choose only what you need. Check code against the project's version and Three.js documentation; a skill example does not update dependencies automatically.

How to connect the required skills

Use Codex's skill installer with the exact repository and folders. The collection's README cloning example points to another project; these paths belong to CloudAI-X/threejs-skills. Ask Codex to show contents and the installation location first and preserve existing skills.

Use skill-installer to prepare installation from CloudAI-X/threejs-skills, paths skills/threejs-fundamentals and skills/threejs-interaction. Check the current client, existing skills, folder contents and installation scope. Show the plan and wait for approval before writing. After installation, check that both skills are available in the current Codex. If they are not detected, explain whether a restart is needed under the client's instructions.

A custom model also needs threejs-loaders; its supplied animation may need threejs-animation. Install the three package and site runner separately after checking existing project dependencies. A skill does not add WebGL support to a device or connect a browser.

How to make a first example

  1. Codex finds the project, design rules and current three version. Agree on one scene and its controls. Start with a simple shape without downloading another person's model or adding complex effects.
  2. The assistant creates the scene separately from working pages, sets camera, light, dimensions and controls, and opens an available local preview.
  3. Check that the shape is actually visible, fits the frame and responds to controls. Repeat on desktop and mobile and after resizing the window.

Work needs source access and an environment that can run the site. Text-only scene analysis is not a verified browser preview.

How to check a scene and model

A blank area may mean a loading, camera or lighting error. Codex checks the console, resource path, canvas dimensions and framing. External models need permitted files and usage terms; a name alone does not establish permission.

Show loading and error states. Scene controls must not prevent normal page scrolling. Test reduced motion, stopping optional rotation and a non-3D fallback such as a photograph. Reopening the page should not leave extra rendering loops or handlers.

How to save and update

Keep source, models, textures and their usage information with the project. When updating Three.js, check the official API migration guide and retest the scene. Do not download the library's entire history for one example.

The collection is MIT-licensed; models and textures may have other terms. Removing a skill does not remove the scene or its dependencies. Restore their changes separately from an agreed version.

Where to use it and what comes next

Use it as an optional route in the interface-design effects step when an interactive 3D object genuinely helps the task. Continue that plan's interface checks afterwards. The result is a visible, controllable scene with source and fallback, not just a code file.

Paste this into Codex or Work with project access:

Prepare one practice 3D example in the current project using https://github.com/CloudAI-X/threejs-skills. Find source, design rules, the Three.js version and available skills. Choose a minimal set; before installation, show sources, dependencies and location and wait for approval. Start with a simple shape separately from working pages. Set camera, lighting, dimensions and controls. Open a local preview and test nonblank rendering, framing, resizing, mouse and touch on desktop and mobile. Controls must not block ordinary scrolling. Add reduced motion, a fallback and cleanup when the scene closes. Use a model from my materials only after checking access and usage terms. Preserve source and resources; do not publish or claim a verified scene without viewing the result.
In This Article
Saved