webgl-raymarched-hero
यह क्या करती है
यह स्क्रीन पर एक चमकदार और एनिमेटेड 3D सीन दिखाता है। इसमें 'raymarching' तकनीक से जैविक (organic) आकार बनाए जाते हैं, जो हिलते और बदलते रहते हैं। इसके लिए traditional 3D models या textures की ज़रूरत नहीं होती।
कब इस्तेमाल करें
- ✓किसी पेज के hero section के लिए आकर्षक और आधुनिक 3D लुक चाहिए तो।
- ✓जब आप 'blobs' जैसे आपस में मिलने वाले 3D आकार दिखाना चाहते हैं।
- ✓3D models और textures की जटिलता के बिना एक अनोखा विज़ुअल इफ़ेक्ट बनाने के लिए।
Skill का लिंक
https://github.com/nexu-io/open-design/blob/main/plugins/_official/examples/webgl-raymarched-hero/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“धीरे-धीरे घूमते 'metaballs' वाला एक 3D विज़ुअल बनाओ।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
प्रोग्राम पूरी स्क्रीन को ढकने वाला एक त्रिभुज बनाता है, और एक खास कोड (fragment shader) की मदद से स्क्रीन के हर pixel का रंग तय करता है। यह 3D स्पेस में रोशनी की किरणों के चलने का अनुकरण करता है, जिससे आकार और परछाइयाँ बनती हैं।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Raymarched Hero Skill
Produce a single self-contained index.html that renders a real-time 3D scene entirely in a fragment shader via sphere tracing, full-screen, with a clean typographic overlay on top.
Why this is a powered artifact
OpenDesign detects getContext('webgl2') and renders this file in powered preview — a cross-origin-isolated iframe with allow-same-origin. The full GPU pipeline is available; you do not need to work around the opaque sandbox.
Resource map
webgl-raymarched-hero/
├── SKILL.md ← you're reading this
└── example.html ← a working SDF metaball raymarcher (READ FIRST)
Workflow
Step 0 — Read the reference
Read example.html end to end. Note the shape: one fullscreen triangle; a map(p) signed-distance function that smooth-unions (smin) several moving spheres; normals by finite differences; a softShadow march; and a camera built from ro/ta with a slow orbit. Shading = diffuse × soft shadow + fresnel rim + a tight specular.
Step 1 — Choose the SDF
Keep the marcher cheap so it holds 60fps:
- Metaballs (default): a few spheres blended with
smin— organic, always readable. - Rounded primitives: box/torus/capsule SDFs with domain repetition for a structured hero.
- Displaced surface: a sphere plus a low-amplitude noise displacement for a molten look.
Step 2 — Build index.html
- One file, zero external requests. Fullscreen triangle + fragment raymarch.
- Bound the march: cap iterations (~90), early-out on hit (
d < 0.001) and on far distance; clamp DPR to ~1.5 — raymarching is per-pixel heavy. - Light it: diffuse, a soft/penumbra shadow, a fresnel rim (
pow(1 - dot(n,-rd), 3)), and one specular lobe. Gentle gamma at the end. - Compile shaders with error logging so a typo fails loudly, not silently black.
Step 3 — Overlay + brand
- Map the accent colors to the active DESIGN.md when one is present; otherwise a restrained dark palette with one vivid accent (the reference tints the surface toward lime
#63fe13and rims it in teal). - Headline ≤ 13ch plus one supporting line. Keep the 3D form as the hero.
Step 4 — Self-review (P0)
- Renders continuously at ~60fps; the FPS badge updates.
- Surface has real depth cues: shadow, rim, and a moving specular.
- No banding artifacts at the silhouette; normals are stable.
- Resizes crisply on window resize (no stretching / blur).
- Degrades to a message (not a blank page) if
webgl2is unavailable.
अक्सर पूछे जाने वाले सवाल
'metaballs' क्या होते हैं?
ये 3D आकार होते हैं जो 'blobs' या 'बूँदों' जैसे दिखते हैं, और एक-दूसरे के पास आने पर जैविक ढंग से आपस में घुल-मिल जाते हैं।
'raymarching' क्या है?
यह computer graphics की एक तकनीक है जो 3D सीन बनाने के लिए रोशनी के रास्ते का अनुकरण करती है। इसमें 'किरणें' भेजी जाती हैं और देखा जाता है कि वे कहाँ टकराती हैं, और उसी के हिसाब से तय होता है कि क्या बनाना है।
यह 3D models या textures क्यों इस्तेमाल नहीं करता?
यह तकनीक कोड में गणित के ज़रिए सीधे आकार बनाने पर केंद्रित है, इसलिए बाहरी model या texture files के बिना भी अनोखे विज़ुअल इफ़ेक्ट और सहज एनिमेशन मिलते हैं।
जानकारी
लेखक का मूल विवरण
A real-time raymarched 3D hero — soft-shadowed morphing metaballs with a fresnel rim light, sphere-traced per pixel in a fragment shader with a slow camera orbit. No meshes, no textures. Rendered as a single self-contained `index.html`. Use when the brief asks for a "raymarch", "signed distance field", "SDF", "3D hero", "metaballs", "blobs", or a shader-based 3D scene. OpenDesign serves this in po
repo: nexu-io/open-design
लोकप्रियता
- GitHub स्टार
- 101k
- रैंकिंग में स्थान
- #1063
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 15/10/2026
कमेंट
- …
इस repository की और skills
sample-plugin
101kआपके एजेंट से टेस्ट के लिए metadata file बनवाता है। इससे पक्का होता है कि कोड अलग-अलग स्थितियों में सही चलता है।
aster-atelier
101kआपके एजेंट से क्लासिक लुक वाली एक कलात्मक website बनवाता है। इसमें खूबसूरत इमेज, नीला आसमान और serif fonts इस्तेमाल होते हैं, जिससे सिनेमाई एहसास मिलता है।
audio-jingle
101kआपके एजेंट से जिंगल्स और sound effects जैसा audio बनवाता है। यह music और voice बना सकता है और नतीजा audio file में सेव करता है।
blog-post
101kआपका एजेंट लंबे articles या blog posts लिखने में मदद करता है। इसमें images, quotes और author की जानकारी के लिए जगह भी होती है।
मिलती-जुलती skills
gifgrep
394kयह आपके एजेंट को GIF लाइब्रेरी में खोजने, नतीजों का पूर्वावलोकन करने, GIF डाउनलोड करने, और उससे एक फ़्रेम या फ़्रेम्स की शीट निकालने देती है।
meme-maker
394kयह आपके एजेंट को मीम टेम्पलेट चुनने, अपने कैप्शन जोड़ने और मीम को SVG या PNG इमेज के रूप में बनाने देती है।
ios-icon-gen
280kआपके एजेंट को iOS ऐप्स के लिए icons बनाने देता है। यह Apple symbols या दूसरे स्रोतों के आइकन इस्तेमाल करके सही files बनाता है।