3d-metal-material
यह क्या करती है
यह स्किल Three.js में धातु की सतहों को भूरे प्लास्टिक के बजाय असली धातु जैसा दिखाने का मार्गदर्शन देती है। यह उन डेवलपर्स के लिए है जो चमकदार या पुरानी धातु वाले उत्पाद, औज़ार या दृश्य बनाते हैं।
कब इस्तेमाल करें
- ✓जब 3D दृश्य में धातु भूरे प्लास्टिक या धुंधले धब्बे जैसी लगती है।
- ✓जब वेब 3D दृश्य में स्टील, पीतल, सोना या तांबा सही दिखना चाहिए।
- ✓जब धातु के ब्लेड, हैंडल या औज़ार पर घिसे किनारे या पुराना फ़िनिश चाहिए।
Skill का लिंक
https://github.com/MengTo/Skills/blob/main/agent-skills/3d/3d-metal-material/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे 3D वर्कबेंच दृश्य की स्टील की छेनी को घिसे किनारों वाली पॉलिश धातु जैसा बनाइए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट धातु को बिना रंग वाले असली conductor के रूप में सेट करता है, फिर उसे चमकदार परावर्तन और अलग-अलग roughness वाले अंधेरे स्टूडियो में रोशन करता है। नतीजा इस तरह ठीक किया जाता है कि परावर्तन सतह को धातु जैसा पढ़वाए।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
3D Metal Material
Mechanism: a conductor has no colour of its own, so it looks like metal only when a dark environment holds a few very bright, hard-edged things to reflect, and the surface then bends those reflections with roughness that varies across it. Remove the bright cards and the same steel goes flat grey; remove the roughness variation and it goes CG-clean.
Boundary. This skill is the material and the environment it reads. Reach for 3d-specular-rim-glow when the job is one bright edge catch and halo on a product, 3d-high-resolution-textures when you ship authored PBR texture sets and need texel density and mip budgets, 3d-ultra-realistic-water for water. Siblings 3d-wood-material, 3d-cloth-material and 3d-paper-material cover the non-metal surfaces that usually sit next to metal; use them for the bench, handle or wrapping. The demo has a bench and a chisel handle only as staging.
Verified stack of the demo: Three.js r169 (three@0.169.0), WebGL 2, GLSL patched into MeshStandardMaterial/MeshPhysicalMaterial with onBeforeCompile, PMREMGenerator, a HalfFloat MSAA target and a hand-written ACES pass. No post-processing library.
Build order
Do these in order; each one fixes a named failure the previous step cannot.
Conductor, not painted.
metalness: 1,color= the metal's F0 (linear reflectance at normal incidence), nothing else incolor. A bright base colour turns lit faces into white paint, and metalness < 1 lets a diffuse term leak in as plastic.A dark room with bright cards. Build the environment as a real
SceneofMeshBasicMaterialplanes withtoneMapped:falseand HDR radiance above 1, on a near-black background, thenPMREMGenerator.fromScene. A bright uniform sky makes every reflection the same mean tone, and raisingenvMapIntensityonly lifts that mean. A canvas equirect capped at display white cannot make a window brighter than the paper. Cards used in the demo:card size, position linear radiance window, 4 x 3 panes 1.08 x 1.20 panes on 1.30 x 1.47 pitch, at (-5, 4.2, 4.8) 3.8, 3.55, 3.05 cool side card 3.0 x 5.4 at (6, 1.6, 2) 0.52, 0.68, 0.90 warm back card 2.0 x 4.6 at (2.5, 2.2, -5.5) 1.50, 1.22, 0.88 top card 7.5 x 2.2 at (0, 6, 0) 0.52, 0.55, 0.60 floor bounce 9 x 9 at (0, -4, 0) 0.18, 0.12, 0.07 background 0.045, 0.050, 0.060 Aim a card at the object. The eye sees the reflection of whatever lies along the mirror direction. The hero plate is turned to the bisector of eye and window (yaw -0.38, pitch -0.36 rad). Left face-on to a dark region, the same polished steel reads black.
Vary the roughness. Roughness is the finish, not the constant. Layer low-frequency smears (fingerprints), two angles of micro-scratches, and a fine grain into
roughnessFactor, and fade each below its pixel footprint withfw = max(length(dFdx(p)), length(dFdy(p))). Uniform roughness is what makes metal look rendered.Give it a bevel. Use a chamfered box (round the arrises 1 to 3 mm at object scale, 3 to 5 segments). A sharp 90 degree edge has no normals between faces, so it catches no highlight. Above 6 to 19 percent of the smallest side it reads as soap.
Ground it in darkness. Contact shadow blobs and a shadow-casting key light on a dark bench. Metal on a bright ground reflects the ground and loses contrast.
Tone map last. Render into a HalfFloat target, add the bloom, then ACES and the sRGB encode by hand. Keep
renderer.toneMapping = NoToneMappingwhile rendering to the target.
Constants
F0 goes in color as linear values (Color.setRGB(r,g,b, LinearSRGBColorSpace)), so you do not lose the tint to an sRGB round trip.
| metal | F0 linear | aged surface tint (uPatCol) |
|---|---|---|
| steel | 0.56, 0.57, 0.58 | rust 0.16, 0.055, 0.02 |
| brass | 0.89, 0.72, 0.36 | dark tarnish 0.09, 0.055, 0.02 |
| gold | 1.00, 0.71, 0.29 | dirty wear 0.13, 0.085, 0.03 |
| copper | 0.95, 0.64, 0.54 | verdigris 0.10, 0.34, 0.27 |
| finish | base roughness | envMapIntensity | extra |
|---|---|---|---|
| polished | 0.09 (0.045 to 0.6 after variation) | 1.0 | smear +0.11, scratch +0.24, grain +-0.025 |
| brushed | 0.26 (0.10 to 0.75) | 0.72 | MeshPhysicalMaterial.anisotropy 0.85, streaks 520 and 1500 cycles per unit along the grain |
| aged | 0.36 (0.10 to 0.95) | 0.85 | patina lowers metalness to 0.28, raises ro |
अक्सर पूछे जाने वाले सवाल
धातु को अंधेरे कमरे की ज़रूरत क्यों है?
स्किल समझाती है कि धातु परावर्तन दिखाती है, इसलिए उसे परावर्तित करने के लिए कुछ तेज़ चमकीले आकार चाहिए।
क्या यह लकड़ी या कागज़ भी कवर करती है?
नहीं। उनके अपने स्किल हैं। यह धातु और उसके परावर्तित होने वाली रोशनी कवर करती है।
यह कौन-सी धातुएँ कवर करती है?
स्टील, पीतल, सोना, तांबा और लोहा, पॉलिश, ब्रश्ड और पुराने फ़िनिश के साथ।
जानकारी
लेखक का मूल विवरण
Build hyperrealistic PBR metal in Three.js: steel, brass, gold, copper and iron as true conductors (metalness 1, measured F0 tint, no albedo) with roughness-varied finishes (polished, brushed anisotropic, aged with patina and worn edges) lit by a dark HDR studio of real bright window cards prefiltered with PMREM. Use when metal looks like grey plastic, a dull blur, or a black hole; when blades, tools, rings, ingots, hardware or product metal need reflections with edges and structure; or when a finish needs scratches, streaks, fingerprints and bevels that catch light.
repo: MengTo/Skills
लोकप्रियता
- GitHub स्टार
- 7.2k
- रैंकिंग में स्थान
- #13318
- लाइसेंस
- MIT
- अपडेट की गई
- 1/11/2026
कमेंट
- …
इस repository की और skills
3d-cloth-material
7.2kआपके एजेंट को Three.js में असली बुने हुए कपड़े जैसा दिखने वाला मटीरियल बनाने में मदद करती है, जिसमें धागों की बुनाई, हल्की चमक, प्राकृतिक सिलवटें, किनारे और सीवन हों।
3d-falling-leaves
7.2kआपके एजेंट को 3D दृश्य में असली लगने वाली गिरती पत्तियाँ जोड़ने देती है, जो लुढ़कती हैं, हवा के साथ बहती हैं और कैमरा हिलने पर दोबारा इस्तेमाल होती हैं।
3d-four-seasons
7.2kआपके एजेंट को 3D दृश्य में वसंत, गर्मी, शरद और सर्दी के रूप जोड़ने देती है, जिसमें हरियाली, रोशनी, आसमान और बर्फ़ बिना दृश्य दोबारा बनाए बदलते हैं।
3d-high-poly-models
7.2kआपके एजेंट को चिकने आकार और विश्वसनीय किनारों वाले विस्तृत 3D मॉडल बनाने देती है, और फिर वेब पर अच्छे चलने वाले हल्के संस्करण तैयार करती है।
मिलती-जुलती skills
angular-developer
280kआपके एजेंट को Angular code बनाने और प्रोजेक्ट स्ट्रक्चर पर सलाह देने में मदद करता है। नए प्रोजेक्ट शुरू करने, code के हिस्से बनाने, या performance और accessibility सुधारने में उपयोगी है।
frontend-a11y
280kआपके एजेंट को web interfaces को सबके लिए accessible बनाने में मदद करता है। यह सुनिश्चित करता है कि websites और apps screen readers और keyboard navigation के साथ अच्छे से काम करें।
frontend-patterns
280kआपके एजेंट को React और Next.js में frontend development के modern patterns लागू करने में मदद करता है। यह performance optimize करता है, state manage करता है और best practices फॉलो करवाता है।