3d-wood-material
O que ela faz
Esta skill orienta o agente a criar a superfície de madeira em uma cena 3D a partir de código. Ela serve para desenvolvedores que criam tábuas, bancos, painéis entalhados ou cabos de ferramentas que precisam parecer madeira real de perto.
Quando usar
- ✓Quando uma tábua, um banco ou um cabo 3D parece plástico ou madeira pintada.
- ✓Quando você precisa que os veios da madeira sigam a forma de um objeto.
- ✓Quando você quer acabamentos de óleo, cera ou laca em madeira de uma cena 3D.
Link da skill
https://github.com/MengTo/Skills/blob/main/agent-skills/3d/3d-wood-material/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Faça o banco da minha oficina 3D parecer carvalho oleado, com anéis de crescimento visíveis.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
O agente cria um único material de madeira a partir de código, que controla juntos o padrão dos anéis, os poros, os raios e as marcas de ferramenta. Cada detalhe esmaece com a distância, para que a madeira fique lisa de longe.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do GitHub.
3D Wood Material
Mechanism: one small periodic noise field, mip-filtered, is read at several different stretches and scales inside the fragment shader, so ring position, latewood, pores, fibres, rays and tool marks all come from the same wandering grain and feed colour, roughness and relief together, each fading out by its own screen footprint.
Boundary. This skill is the wood surface itself. For whole-scene light, rays and scoring wood renders, use 3d-wood-lighting-scorecard. For image-based PBR sets (downloaded maps, texel budgets, KTX2 delivery) use 3d-high-resolution-textures; reach for it when you need a photographed or scanned species. For silhouette, bevel and LOD geometry use 3d-high-poly-models; this skill only needs a rounded arris (below). Cloth, metal and paper have their own siblings.
Run demo.html first (Kibori bench, four species, four finishes, macro views, and a switch that swaps in the failure). PROMPT.md recreates it.
Recipe
- Patch, do not replace. Build
MeshPhysicalMaterial({color:0xffffff, roughness:max(0.43,r), ior:1.43, specularIntensity:0.72})and edit it inonBeforeCompile:#include <map_fragment>multipliesdiffuseColorby the wood colour,#include <roughnessmap_fragment>setsroughnessFactor=clamp(roughness*W.rough,0.35,1),#include <normal_fragment_maps>replaces the normal with a screen-space bump of the wood heightW.h. Lighting, shadows, IBL and tone-mapping stay stock. The vertex stage only passes object-space positionvOPand the object normal. - Bake one field. A 1024²
RepeatWrapping,LinearMipmapLinear,NoColorSpacerender target of periodic gradient noise (period 64, three octaves:.rbase,.gfbm 0.60/0.27/0.13,.ba shifted copy). Reading it astexture(p/64)costs one tap. All timber shares it; per-board difference is a seed offset, not a texture. - Grain axis.
uAxis0/1/2 picks the log axis;alongis that coordinate andcross2the other two.endgrain = pow(|n·axis|, 6)flips pores from streaks to open cells and dulls the colour on cut faces. - Rings. Drift the pith with two slow fields,
radius=|(cross2+(-drift, offAxis+0.48))*(1,0.56)|,growth=radius*ringFreqplus fbm wobble (±1.25rings),ring=floor(growth),phase=fract. Each ring draws its own width fromannualnoise:lateWidth=0.065+annual*0.21. Latewood is a steepsmoothstep(0.94-w, 0.97-w, phase)cut off by1-smoothstep(0.965,1,phase). SmalloffAxisgives cathedral arcs; largeoffAxisgives straight quarter-sawn lines. - Detail layers, each faded by its own footprint (
fwidthof growth,length(dFdx,dFdy)of the pore, fibre and ray coordinates):
| layer | coordinates | strength |
|---|---|---|
| pores (vessels) | (fiberX*96, along*7.5), cells at end grain cross2*88, smoothstep(0.59,0.75) |
tone +0.25, rough +0.19, height -0.42 |
| fibres | (fiberX*230, along*2.4) |
tone -0.16, height +0.09, x0.25 at end grain |
| rays | (across*13, along*115), smoothstep(0.64,0.78) |
tone +0.26 towards pale, rough -0.075 |
| checks | curl.b smoothstep(0.70,0.82) x uChecks |
tone toward dark*0.68, height -0.20 |
| knots | hash cell 1.85 x 4.6, 29% occupied, influence dies at the cell edge | tone +0.44 core, deflects fibres |
| tool marks | (along*17, across*0.4) |
height +0.045 x uTool |
- Tone:
tone=0.075+late*0.40+early*0.070+pores*0.25-fibres*0.16+(broad.g-0.5)*0.23+knotCore*0.44, colourmix(pale,dark,clamp(tone,0.035,0.83)), then*(0.93+annual*0.095+…). Roughness0.91+late*0.13+pores*0.19+(broad.b-0.5)*0.20-rays*0.075+endgrain*0.14. - Bump, not normal map.
bumpNormaluses the derivative-based Mikkelsen bump and clamps the gradient to0.38*|det|, so a steep step never flips the normal.uBump=bump*0.020. - Finishes are parameters, not textures. Raw:
clearcoat 0. Oil:pow(rgb,1.16)andrough*0.88,clearcoat 0.10 / 0.55. Wax:clearcoat 0.22 / 0.38. Urushi: luminance curvepow(l,0.5), end grain darkened*(1-eg*0.55), warm tint, worn arrises rubbed back to the pale colour,clearcoat 0.42 / 0.40. - Round the arris.
chamferBoxon every board, radiusmin(w,h,d)*0.055(at most 0.24 of any side), 3 to 5 segments, with normals set from the rounded corner. A sharp box edge has no highlight and reads as a cut-out. - Give every board its own seed, and keep it stable when species or finish changes (save and restore
woodMaterialSerialaround the build, see
Perguntas frequentes
Precisa de fotos de madeira?
Não. A skill cria a madeira com padrões procedurais, sem texturas de imagem.
Quais acabamentos estão incluídos?
Acabamentos de óleo, cera e laca.
Ela também configura a iluminação do cômodo?
Não. A iluminação do cômodo é coberta por uma skill separada de iluminação de madeira.
Detalhes
Descrição original do autor
Build convincing timber for Three.js as one procedural MeshPhysicalMaterial with growth rings, cathedral figure, pores, medullary rays, checks, tool marks, end grain, and oil, wax, or lacquer finishes, so the grain follows the form and survives macro close-ups without image textures. Use for wood boards, benches, carved panels, tool handles, joinery, floors, and any request to make 3D wood look real, detailed, or less like a tiled photo or plastic.
repo: MengTo/Skills
Popularidade
- Estrelas no GitHub
- 7,2 mil
- Posição no ranking
- #13328
- Licença
- MIT
- Atualizada em
- 01/11/2026
Comentários
- …
Mais skills deste repositório
3d-cloth-material
7,2 milAjuda seu agente a criar tecido tramado realista no Three.js, com trama de fios, brilho suave, dobras naturais, barras e costuras.
3d-falling-leaves
7,2 milAjuda seu agente a acrescentar folhas caindo realistas a uma cena 3D, com folhas que giram, são levadas pelo vento e reaproveitadas conforme a câmera se move.
3d-four-seasons
7,2 milAjuda seu agente a acrescentar visuais de primavera, verão, outono e inverno a uma cena 3D, alterando folhagem, luz, céu e neve sem reconstruir a cena.
3d-high-poly-models
7,2 milAjuda seu agente a criar modelos 3D detalhados com formas suaves e bordas convincentes, e depois preparar versões mais leves que rodem bem na web.
Skills parecidas
angular-developer
280 milAjuda seu agente a criar código Angular e a dar conselhos sobre a estrutura do projeto. É útil para iniciar novos projetos, criar partes do código ou melhorar a performance e acessibilidade.
frontend-a11y
280 milAjuda seu agente a tornar interfaces web acessíveis para todos. Ele garante que sites e apps funcionem bem com leitores de tela e navegação por teclado.
frontend-patterns
280 milFaz seu agente aplicar padrões modernos no desenvolvimento frontend. Ele otimiza performance, gerencia estado e segue boas práticas em React e Next.js.