Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

3d-cloth-material

Skill by MengTo

Builds convincing woven cloth in Three.js, with a thread-level weave normal map, sheen, folds that do not stretch the texture, hems, stitches and light passing through thin fabric. Written for developers making curtains, banners, cloaks and other 3D drapes.

  • Score 91
  • 8.6k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install 3d-cloth-material

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-cloth-material ~/.claude/skills/3d-cloth-material

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install 3d-cloth-material in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill guides the building of woven cloth materials in Three.js. It covers a thread-level weave normal map, sheen and anisotropic highlights, folds that keep the texture from stretching, hems with thickness, stitches, seams, frayed raw edges, fold occlusion, dye and wear variation, and light passing through thin fabric. It gives per-fabric constants for linen, silk and wool, including weave, pitch, roughness and sheen.

The method hangs the cloth as rows whose tangent angle carries the fold signal, so arc length equals the rest coordinate and the weave does not stretch. The source also includes measured frame costs and notes that it is not a cloth simulation. It is aimed at developers who want curtains, banners, cloaks, tablecloths or tapestries to stop looking like plastic sheets or flat coloured planes.

Written from the project's SKILL.md and checked against it.

What it can do

  • Weave normal mapBakes a thread-level over and under interlacement for plain, twill and satin weaves.
  • Stretch-free foldsIntegrates fold angles so the texture keeps its real metre scale across folds.
  • Sheen and anisotropySets sheen, sheen roughness and anisotropy values tuned for silk, linen and wool.
  • Hems and stitchesTurns free edges under with thickness and draws stitches and seams in the shader.
  • Raw edge frayingDraws out weft threads along an unhemmed edge with random lengths.
  • Fold occlusionCombines shadow map settings with vertex ambient occlusion from fold depth.
  • Dye and wear variationVaries per-thread tone, blotches and wear on thread tops for a less uniform look.
  • Light through fabricAdds transmitted light through thin cloth, with threads blocking and gaps passing light.
  • Performance guidanceLists measured frame and cloth CPU costs and rules for reduced motion and resizing.

What you need

  • Three.js r169
  • WebGL
  • Vanilla JavaScript

Try asking

  • Make a linen curtain in Three.js that does not stretch its weave when folded
  • Add silk banners with sheen and anisotropic highlights to my Three.js scene
  • Give my cloak model a wool twill material with frayed raw edges

Good to know

  • Not a cloth simulation; wind is analytic and there is no collision.
  • Folds that touch themselves are not supported; self-collision needs a baked simulation.
  • Fold angles must stay below about 1.45 rad or folds turn into flat plateaus with dark seams.
  • Wool fibre halo geometry is listed as a possible improvement, not included.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: agent-skills/3d/3d-cloth-material/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • PROMPT.md4 KB
  • SKILL.md10 KB
  • agents/openai.yaml303 B
  • demo.html50 KB
  • preview.jpg206 KB

Alternatives to 3d-cloth-material

All alternatives →
paperbananadwzhu-pku
94

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.

AAA Skill 7.7k
technical-wireframe-info-layoutMengTo
94

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.

AAA Skill 8.5k
spline-3d-integrationsickn33
94

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.

AAA Skill 50k
code-slice-heroheygen-com
94

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.

AAA Skill 92k
patentfigdavila7
94

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.

AAA Skill 34k
framed-tech-dark-border-gradientMengTo
94

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.

AAA Skill 8.5k

Compare with paperbanana, technical-wireframe-info-layout or spline-3d-integration

3d-cloth-material: common questions

Does this skill simulate cloth physics?

No. The source says it is not a cloth simulation and suggests simulating in Verlet or Blender and baking the result, then applying these material rules.

Which fabrics does it cover?

The constants table covers linen, silk and wool, with a weave, thread pitch, roughness and sheen value for each.

Why does the fabric texture not stretch on folds?

Folds are integrated from a tangent angle so arc length equals the rest coordinate, and the texture uses those rest metres instead of being recalculated each frame.

How do I install 3d-cloth-material?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is 3d-cloth-material free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is 3d-cloth-material safe to use?

It scores 91 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-cloth-material?

Similar skills: paperbanana, technical-wireframe-info-layout, spline-3d-integration, code-slice-hero.

3d-cloth-material Install

Add to stack

Loading.