Skip to content
SkillModel-led5,265 tokens in use

threejs-loaders

Gives an AI coding agent current three.js r186 knowledge of loading glTF models, textures and HDR environments with progress, caching and disposal.

4,322 stars on the repository MIT LicenseCloudAI-X/threejs-skills · skills/threejs-loaders
npx skills add cloudai-x/threejs-skills
View source

Install command as written in the repository's README

Skill label

measured from its files

What installing threejs-loaders costs

71tokens idle
5,265tokens in use

Idle is what sits in context while the skill is installed. In use is its instructions, loaded when it runs. Counts are approximate, made offline with cl100k_base.

Model dependence Model-led

Script-ledMixedModel-led

Mostly instructions, so how well it works depends on the model that follows them.

This describes the skill's structure, how much of it is scripts. It does not say how well it works.

Touches

networkdetected

Declared tags come from the skill's frontmatter; detected ones from its scripts, its code blocks and the commands it names in inline code. This is detected, not audited.

How it scores

Quality

How well the skill is written, counted from its own files: its frontmatter, its steps, examples, stated output and constraints, its size and whether every file it ships is one it names.How we score it →
Good
  • Frontmatter12/15
  • Structure17/25
  • Examples15/15
  • Output10/15
  • Size9/15
  • Resources10/15

Security

Starts at 100 and loses points for each thing in the skill's files that a reader should look at first.How we score it →
Excellent
  • Reaches the network−10

    does this on the machine, and the frontmatter does not say so

    SKILL.md, line 367

Repository health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
Fair
  • Development activity68
  • Maintenance40
  • Community52
  • Maturity32
  • Momentum40

threejs-loaders covers bringing assets into a three.js scene. Its quick start loads a glTF model with GLTFLoader and lights it with a RoomEnvironment, and notes that glTF PBR materials render black without lights or an environment.

Further sections cover the LoadingManager for combined progress, glTF with Draco, meshopt and KTX2 compression, other model formats, HDR and EXR environment maps, caching, cloning and disposal.

What You Get

  • A quick start that loads a glTF model and lights it with a generated room environment
  • LoadingManager patterns for start, progress, load and error events
  • Setup notes for glTF files compressed with Draco, meshopt and KTX2
  • Coverage of other model formats and HDR and EXR environment maps
  • Guidance on caching, cloning and disposing of loaded assets

Common Use Cases

  • Loading a glTF model into a scene
  • Showing a loading progress bar for several assets
  • Using an HDR file as scene lighting and background
  • Cloning a loaded model for several instances
  • Freeing GPU memory when a model is removed

What Makes It Unique

It points out why a freshly loaded glTF looks black and supplies the environment fix in the first example. It is the loading half of a pair with the asset pipeline skill, which compresses files that this skill then loads. It is pinned to r186 and cross-linked to its siblings.

Under The Hood

The skill is a single SKILL.md of explanation and JavaScript examples, with no scripts, and it tells the agent to run no commands. The agent reads it and writes three.js code into your project. The example code makes network requests in the browser to load model and texture files, including one fetch call, when the page runs. The skill itself does not make requests and writes no files.

Join founders building with open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on SubstackJoin 750+ subscribers