threejs-reference-reading
Skill1.1k starsChanged 4 days agoMITView on GitHub
Decode a visual reference into a physically coherent Three.js 3D build plan. Use for translating photos, concept art, paintings, film stills, clips, or AI-generated images into physical element identities, construction methods, spatial connectivity, light direction, style-to-method rules, misreading prevention, and open design for silent or off-frame regions.
In this repository29 other files it gives its agents.
- .codex/AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- threejs-atmosphere-aerial-perspectiveSkill
- threejs-bloomSkill
- threejs-camera-directionSkill
- threejs-exposure-color-gradingSkill
- threejs-image-pipelineSkill
- threejs-lighting-and-giSkill
- threejs-parallax-occlusion-mappingSkill
- threejs-precipitation-surfacesSkill
- threejs-procedural-animationSkill
- threejs-procedural-architectureSkill
- threejs-procedural-fieldsSkill
- threejs-procedural-geometrySkill
- threejs-procedural-materialsSkill
- threejs-procedural-planetsSkill
- threejs-procedural-vegetationSkill
- threejs-procedural-vfxSkill
- threejs-raymarched-space-effectsSkill
- threejs-screen-space-ambient-occlusionSkill
- threejs-shadow-systemsSkill
- threejs-skill-routerSkill
- threejs-spectral-oceanSkill
- threejs-temporal-stabilitySkill
- threejs-temporal-surfacesSkill
- threejs-terrain-and-landscapesSkill
- threejs-visual-validationSkill
- threejs-volumetric-cloudsSkill
- threejs-water-opticsSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
Keep the reference beside every capture during construction and look development.
- Very specific: line 21
Read references/reference-decoding-and-misreadings.md for the element-table and light-decode contract, precedence rules, recurring …
- Distinctive: line 23
Read references/style-method-and-open-design.md for the style-decides-method matrix, the anchor principle, confining deliberate …
- Very specific: line 29
Never deform world geometry to fit one frame: keep floors level, walls plumb, circles circular, and repeated bays uniform.
- Distinctive: line 31
Anchor every deviation: keep a realistic structural base and confine deliberate impossibilities so they still hold when the viewer orbits.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Reference Reading and Visual Translation
Turn a visual reference into an exact physical, structural, and stylistic reading before writing geometry or shader code. Model what the image actually shows — identity, construction, proportion, orientation, counts, and light — rather than improvising from a quick glance.
Decoding order
- Inspect the full frame at native resolution, then read gridded crops at
3–4xzoom region by region. - Build an element table naming what each form physically is, its material, how it is constructed (carved, applied, assembled, grown), its scale cues, what it touches, and whether it continues off-frame.
- Decode lighting from image evidence: cast-shadow azimuth and length, lit versus shaded faces, specular bisectors, sky aureole, and light patches cast through openings.
- Cross-check every reading against lighting, perspective, scale, and structural logic; revise any reading that fails.
- Classify the style target (photographic, stylized/illustrated, or surreal/liminal) and declare where deliberate deviations from physics live.
- Flag inconsistent or impossible areas (such as AI-generated artifacts) and define the plausible refined version to build.
- Name the
2–5signature elements that define the image so they are built as designed structures rather than generic placeholders. - Keep the reference beside every capture during construction and look development; re-read the image itself rather than memory or notes when a region drifts.
Read references/reference-decoding-and-misreadings.md for the element-table and light-decode contract, precedence rules, recurring identity/space/light misreadings, verification tests, and failure diagnosis.
Read references/style-method-and-open-design.md for the style-decides-method matrix, the anchor principle, confining deliberate impossibilities so they survive orbit, and open-design craft for silent or off-frame areas.
Non-negotiable rules
- Name physical identity before technique: decide what an object is and how a builder or nature made it before picking mesh or shader tricks.
- The frame is a window onto a larger world: elements cut at the border continue past it unless closure is visibly shown.
- Never deform world geometry to fit one frame: keep floors level, walls plumb, circles circular, and repeated bays uniform; solve alignment through the camera (
$threejs-camera-direction). - Style lives in shading, light, and grade — never broken geometry: a stylized target simplifies shading or art-directs light, not structural coherence or core physical representations.
- Anchor every deviation: keep a realistic structural base and confine deliberate impossibilities so they still hold when the viewer orbits.
- Follow precedence when cues conflict: explicit user instructions → spatial integrity and physical sense → clear reference evidence → plausible invention for silent areas.
- Refine rather than copy noise: replace AI-generated inconsistencies with clean, plausible construction matching the reference's character.
- Reject stock defaults in open areas: design silent or prompt-only regions from load, light entry, fabrication logic, and visual hierarchy rather than bare tile grids or box openings.
Failure conditions
- building from a vague vibe so silhouettes, counts, or orientations drift ("resemblance, not exactness");
- inventing stairs, walls, or podiums where the reference clearly shows open ground or a continuing path;
- misreading an overhead cutout as an arch, a continuing curved path as a closed cylinder, or backlit faces as front-lit;
- rotating an element diagonally when its eaves share the same vanishing point as neighbouring structures;
- rationalizing away a deliberate surreal impossibility that creates the image's appeal, or letting an art-directed trick break on orbit;
- copying AI noise into geometry or relief instead of authoring refined structure;
- leaving off-frame, rear, or silent regions empty or filled with unrelated generic clutter.
Routing boundary
This skill owns visual decoding, structural interpretation, style-to-method decisions, and open-design intent before and during a build. Use $threejs-camera-direction to solve lens FOV, pitch, eye height, and back-projected landmark coordinates; $threejs-lighting-and-gi to realize decoded sun/sky ratios, HDRI fill, and GI; $threejs-procedural-geometry, $threejs-procedural-architecture, $threejs-terrain-and-landscapes, or $threejs-procedural-vegetation to build the decoded subjects; and $threejs-visual-validation for side-by-side captures, quantitative region metrics, and per-layer gap attribution.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

