threejs
/threejs
Tworzy 3D w sieci w Three.js, React Three Fiber i Spline: obiekty hero, konfiguratory, kamerę przy przewijaniu i wydajność.
- Autor
- whoamnesia ↗
- Repozytorium
- astudio-motion ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 03.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 6
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 03.11.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Tworzy 3D w sieci w Three.js, React Three Fiber i Spline: obiekty hero, konfiguratory, kamerę przy przewijaniu i wydajność.
Wyzwalacze z opisu
Argumenty
/threejs [what the 3D should show/do] [stack: vanilla, React/R3F, Next.js] [assets: glb, svg, none]
Oryginalny opis (EN)
Real-time 3D on the web by astudio: Three.js (r18x, WebGL and WebGPU/TSL), React Three Fiber + drei, Spline embeds - hero 3D objects, product viewers and configurators, scroll-driven camera stories, particles and points fields, 3D logos extruded from SVG, interactive backgrounds, globes, physics, post-processing, loading glTF with Draco/meshopt/KTX2, performance budgets and fallbacks; renders frames and video of scenes for review. Use for "3D на сайт", "Three.js", "R3F", "react three fiber", "WebGL", "WebGPU", "3D модель в браузере", "3D логотип", "particles", "Spline", "product configurator",
Jak działa
- Workflow
- Current API facts (r180-r183) - old tutorials and model memory get these wrong
- Deliver
Podgląd SKILL.md
--- name: threejs description: >- Real-time 3D on the web by astudio: Three.js (r18x, WebGL and WebGPU/TSL), React Three Fiber + drei, Spline embeds - hero 3D objects, product viewers and configurators, scroll-driven camera stories, particles and points fields, 3D logos extruded from SVG, interactive backgrounds, globes, physics, post-processing, loading glTF with Draco/meshopt/KTX2, performance budgets and fallbacks; renders frames and video of scenes for review. Use for "3D на сайт", "Three.js", "R3F", "react three fiber", "WebGL", "WebGPU", "3D модель в браузере", "3D логотип", "particles", "Spline", "product configurator", "scroll 3D". argument-hint: "[what the 3D should show/do] [stack: vanilla, React/R3F, Next.js] [assets: glb, svg, none]" --- # astudio · Three.js & web 3D Role: Senior Creative Developer (real-time 3D) at astudio.one (15+ years) - award-level 3D that is staged like a photograph, runs at 60fps on a laptop and degrades gracefully. Bar: `<root>/reference/studio-bar.md`; `<root>` = two levels above this skill's base directory, or the folder holding `scripts/motion.cjs`. ## Workflow 1. **Purpose and subject** - what does 3D reveal that 2D can't (form, material, scale, configuration, a world)? The subject is the client's own object (product GLB, the logo extruded from its SVG, a scene from their world) - not a torus knot. Patterns: `search.py "<idea>" -d web3d`; assets: free licensed (Poly Haven, Kenney, Quaternius, Sketchfab CC0/CC-BY - credit) or procedural; never AI-generated. 2. **Stack** - vanilla Three.js (static sites, maximum control) or React Three Fiber + drei (React apps); Spline for designer-made scenes (`references/spline-r3f.md`). WebGPU + TSL only with a WebGL fallback (`references/webgpu-tsl.md`). 3. **Stage it** - camera (35-50mm equivalent, fov 30-45), light (environment HDRI + key, or 3-point), a ground or contact shadow so things touch, a material with numbers (colour, roughness, metalness, clearcoat), colour management (`outputColorSpace = SRGBColorSpace`, ACES/AgX tone mapping, textures' colorSpace set). `references/scene-craft.md`. 4. **Motion with intent** - entrance (object arrives on expo.out, camera settles), one interaction that reveals something (drag to inspect, scroll to explore, hover to light), an end pose. Time from `THREE.Timer`/R3F delta; scroll via GSAP ScrollTrigger mapping progress -> camera/object (`astudio-motion:gsap`). No idle spinning forever as the only motion. 5. **Budget and fallbacks** - DPR <= 1.5-2, draw calls < ~100 mobile, instancing, compressed assets, render on demand for static scenes, `compileAsync` before reveal, pause off-screen; poster image first, no-WebGL fallback, reduced motion = static pose (no auto-rotation, no scroll camera flights). `references/performance-3d.md`. 6. **Look** - `node <root>/scripts/motion.cjs strip scene.html --duration 3 --frames 8` (clock mode drives setAnimationLoop/Timer; software WebGL here - judge look, not speed); `motion_lint.py src` catches deprecated APIs. ## Current API facts (r180-r183) - old tutorials and model memory get these wrong - ES modules only (`build/three.min.js` removed in r161): import map `"three": ".../build/three.module.js"`, `"three/addons/": ".../examples/jsm/"`; import addons from `three/addons/...`, never `three/examples/jsm/...`. - `renderer.setAnimationLoop(fn)` instead of manual rAF (required for WebXR and WebGPU). - `THREE.Timer` replaces deprecated `THREE.Clock` (r183): `timer.connect(document); timer.update(); timer.getDelta()`. - `PCFSoftShadowMap` deprecated (r182) -> `PCFShadowMap` (already soft). `RGBELoader` -> `HDRLoader` (r180). - `outputEncoding`/`sRGBEncoding` removed -> `renderer.outputColorSpace`, `texture.colorSpace = THREE.SRGBColorSpace`. - Physically-based light units: point/spot intensity in candela (hundreds), not 1; `useLegacyLights` gone. - `material.dispose()` doesn't dispose its textures - dispose each texture too; `Object3D.dispose` isn't recursive. - Post-processing: end every EffectComposer chain with `OutputPass`; FXAA after it, SMAA before; WebGPU uses the TSL `PostProcessing` class instead of EffectComposer. - R3F: animate in `useFrame((state, delta) => ...)` via refs (never setState per frame), multiply by delta, positive render priority stops the default render, `useGLTF` (Suspense, caching, Draco), `SkeletonUtils.clone` for skinned copies. Full list with fixes: `references/gotchas.md`. ## Deliver The scene code (component or page), assets with credits and compression notes, a poster PNG (`motion.cjs still`), a strip, fallbacks described, performance numbers you measured (or "measured on software WebGL only").
Pliki w paczce (6)
- SKILL.md 5 KB
- references/gotchas.md 4 KB
- references/performance-3d.md 2 KB
- references/scene-craft.md 6 KB
- references/spline-r3f.md 3 KB
- references/webgpu-tsl.md 2 KB
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · whoamnesia/astudio-motion | 100 | MIT |
| TerminalSkills/skills | 100 | Apache-2.0 |
| MengTo/Skills | 100 | MIT |
| emiliodominguez/threejs-skills | 100 | MIT |
| Funnyhust/POC_Kaenx_Creator | 100 | GPL-3.0 |
| secondsky/claude-skills | 95 | MIT |
Migawka bazy z 13.11.2026 · wersja paczki 60898e9440f0 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100web-3d
Dodaje do stron 3D i WebGL interaktywne obiekty, podglądy produktów, cząsteczki i sceny, z kontrolą wagi i zapasowym widokiem. - 903d-web-experience
Pomaga budować doświadczenia 3D w sieci: konfiguratory produktów, portfolio 3D i immersyjne strony w Three.js, React Three Fiber i WebGL. - 100threejs-3d
Buduje sceny 3D w przeglądarce z React Three Fiber: geometrię, materiały, światło, shadery, modele GLTF i raycasting. - 90creative-web
Wspiera techniki immersyjnego web designu: Three.js i React Three Fiber, WebGL i WebGPU, Rive, Spline, Theatre.js, SVG, canvas, shadery i systemy cząsteczek. - 100web-3d
Buduje 3D w czasie rzeczywistym w Three.js i React Three Fiber, dbając o wagę zasobów, GLB i poziomy szczegółowości. - 100threejs-react-three-fiber
Buduje sceny Three.js w React z React Three Fiber i drei: JSX, pętlę klatek, zdarzenia i ładowanie zasobów.