3d-falling-leaves
Skill by MengTo
Guides developers building falling 3D leaves in world space for Three.js and similar scenes. Covers tumbling leaves, coupled sideways drift, shared wind, instancing, and camera-aware recycling. Use falling-leaves for a 2D canvas overlay.
Install 3d-falling-leaves
Built from the published package, never by AI.
git clone --depth 1 https://github.com/MengTo/Skills /tmp/Skills && mkdir -p ~/.claude/skills && cp -r /tmp/Skills/agent-skills/3d/3d-falling-leaves ~/.claude/skills/3d-falling-leavesRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/MengTo/Skills /tmp/Skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/Skills/agent-skills/3d/3d-falling-leaves ~/.gemini/antigravity-cli/skills/3d-falling-leavesAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
3D Falling Leaves is an agent skill with guidance for building falling leaves in world space for Three.js and similar 3D scenes. It covers building one convincing leaf from a two-sided quad or lightly bent mesh, with a recognizable silhouette, a paler back, and a padded texture atlas for several shapes. It explains how each leaf turns through face, edge, and back while drifting sideways, using persistent seeded values and a shared wind field.
For larger fields, the skill recommends InstancedMesh or instanced attributes with shader animation. It describes recycling that centers a volume ahead of the camera and wraps leaves outside it. It also covers depth testing against architecture, alpha testing, shadow matching, and a verification checklist. The source names Seijaku's leafFall as a reference for the closed-form animation pattern. It is for developers making autumn leaves or drifting foliage in 3D scenes.
Written from the project's SKILL.md and checked against it.
What it can do
- Leaf constructionExplains building a two-sided leaf mesh with a silhouette, stem, vein detail, and a paler back.
- Tumble and drift couplingShows how sideways slip follows the tumble angle so leaves move fastest when edge-on.
- Shared windDescribes a common wind field with small per-leaf response variation, integrated in bounded steps.
- Instanced renderingCovers InstancedMesh with CPU scratch objects, or instanced attributes with shader animation.
- Camera-aware recyclingDescribes wrapping leaves around a volume ahead of the camera, with soft fades at the edges.
- World integrationCovers depth testing, alpha testing, shadow matching, and collision proxies for roofs and terrain.
What you need
- Three.js or a similar 3D scene
Try asking
- Add falling autumn leaves to my Three.js scene using instanced geometry.
- Make the leaves tumble edge-on while drifting sideways with shared wind.
- Recycle leaves around the camera so the field follows my view.
Good to know
- Instances are not individually depth-sorted by default, so alpha blending needs deliberate handling.
- Alpha-to-coverage softens edges only when the actual render target is multisampled.
- The leafFall reference uses hardcoded roof rectangles that must be replaced with the target scene's geometry.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: agent-skills/3d/3d-falling-leaves/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
REFERENCES.md296 B -
SKILL.md5 KB -
agents/openai.yaml234 B
Alternatives to 3d-falling-leaves
All alternatives →PaperBanana generates publication-quality academic diagrams from a paper's methodology text and figure caption. It is aimed at researchers preparing figures for venues such as NeurIPS, ICML, and ACL.
Creates a monochrome technical wireframe design system for dark diagnostic interfaces. It covers layout, typography, info labels, widgets and an exploded wireframe centerpiece. It is for designers and developers building teardown, systems dashboard or specification-style screens.
Guides an AI assistant through embedding interactive Spline.design 3D scenes in web projects. It covers vanilla, React, Next.js, Vue and iframe setups, for developers adding 3D to websites.
Code Slice Hero is a HyperFrames headline block. A tiled surface flips cell by cell to reveal a second headline behind the first, at 1920×1080 and 8 seconds.
Generates patent-office-compliant figures and converts drawings through the PatentFig AI API. Built for patent filers who need USPTO or EPO line art, CAD-ready vectors, or filing-ready TIFF, PDF, or PNG files.
Creates a framed dark technical design system for AI assistants, using border-gradient shells, asymmetrical grid panels, and mono labels. Suited to premium, instrument-like interfaces that need visible boundaries. Published by MengTo.
Compare with paperbanana, technical-wireframe-info-layout or spline-3d-integration
3d-falling-leaves: common questions
Can this skill make leaves turn edge-on?
Yes. The source says the edge-on moment is essential and that camera-facing point sprites cannot turn edge-on, so it recommends a two-sided quad or lightly bent mesh.
What should I use for a 2D canvas overlay?
The source says to use the falling-leaves skill for a 2D canvas overlay instead of this one.
Does depth testing keep leaves out of rooms?
No. The source says depth testing alone does not prevent leaves falling inside rooms, so covered interior volumes or roof and terrain collision proxies are needed.
How do I install 3d-falling-leaves?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is 3d-falling-leaves free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is 3d-falling-leaves safe to use?
It scores 92 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to 3d-falling-leaves?
Similar skills: paperbanana, technical-wireframe-info-layout, spline-3d-integration, code-slice-hero.
