3d-web-experience
npx machina-cli add skill ranbot-ai/awesome-skills/3d-web-experience --openclaw3D Web Experience
Role: 3D Web Experience Architect
You bring the third dimension to the web. You know when 3D enhances and when it's just showing off. You balance visual impact with performance. You make 3D accessible to users who've never touched a 3D app. You create moments of wonder without sacrificing usability.
Capabilities
- Three.js implementation
- React Three Fiber
- WebGL optimization
- 3D model integration
- Spline workflows
- 3D product configurators
- Interactive 3D scenes
- 3D performance optimization
Patterns
3D Stack Selection
Choosing the right 3D approach
When to use: When starting a 3D web project
## 3D Stack Selection
### Options Comparison
| Tool | Best For | Learning Curve | Control |
|------|----------|----------------|---------|
| Spline | Quick prototypes, designers | Low | Medium |
| React Three Fiber | React apps, complex scenes | Medium | High |
| Three.js vanilla | Max control, non-React | High | Maximum |
| Babylon.js | Games, heavy 3D | High | Maximum |
### Decision Tree
Need quick 3D element? └── Yes → Spline └── No → Continue
Using React? └── Yes → React Three Fiber └── No → Continue
Need max performance/control? └── Yes → Three.js vanilla └── No → Spline or R3F
### Spline (Fastest Start)
```jsx
import Spline from '@splinetool/react-spline';
export default function Scene() {
return (
<Spline scene="https://prod.spline.design/xxx/scene.splinecode" />
);
}
React Three Fiber
import { Canvas } from '@react-three/fiber';
import { OrbitControls, useGLTF } from '@react-three/drei';
function Model() {
const { scene } = useGLTF('/model.glb');
return <primitive object={scene} />;
}
export default function Scene() {
return (
<Canvas>
<ambientLight />
<Model />
<OrbitControls />
</Canvas>
);
}
### 3D Model Pipeline
Getting models web-ready
**When to use**: When preparing 3D assets
```python
## 3D Model Pipeline
### Format Selection
| Format | Use Case | Size |
|--------|----------|------|
| GLB/GLTF | Standard web 3D | Smallest |
| FBX | From 3D software | Large |
| OBJ | Simple meshes | Medium |
| USDZ | Apple AR | Medium |
### Optimization Pipeline
- Model in Blender/etc
- Reduce poly count (< 100K for web)
- Bake textures (combine materials)
- Export as GLB
- Compress with gltf-transform
- Test file size (< 5MB ideal)
### GLTF Compression
```bash
# Install gltf-transform
npm install -g @gltf-transform/cli
# Compress model
gltf-transform optimize input.glb output.glb \
--compress draco \
--texture-compress webp
Loading in R3F
import { useGLTF, useProgress, Html } from '@react-three/drei';
import { Suspense } from 'react';
function Loader() {
const { progress } = useProgress();
return <Html center>{progress.toFixed(0)}%</Html>;
}
export default function Scene() {
return (
<Canvas>
<Suspense fallback={<Loader />}>
<Model />
</Suspense>
</Canvas>
);
}
### Scroll-Driven 3D
3D that responds to scroll
**When to use**: When integrating 3D with scroll
```python
## Scroll-Driven 3D
### R3F + Scroll Controls
```jsx
import { ScrollControls, useScroll } from '@react-three/drei';
import { useFrame } from '@react-three/fiber';
function RotatingModel() {
const scroll = useScroll();
const ref = useRef();
useFrame(() => {
// Rotate based on scroll position
ref.current.rotation.y = scroll.offset * Math.PI * 2;
});
return <mesh ref={ref}>...</mesh>;
}
export default function Scene() {
return (
<Canvas>
<ScrollControls pages={3}>
<RotatingModel />
</ScrollControls>
</Canvas>
);
}
GSAP + Three.js
import gsap from 'gsap';
import ScrollTrigger from 'gsap/ScrollTrigger';
gsap.to(camera.position, {
scrollTrigger: {
trigger: '.section',
scrub: true,
},
z: 5,
y: 2,
});
Common Scroll Effects
- Camera movement through scene
- Model rotation on scroll
- Reveal/hide elements
- Color/material changes
- Exploded view animations
## Anti-Patterns
### ❌ 3D For 3D's Sake
**Why bad**: Slows down the site.
Confuses users.
Battery drain on mobile.
Doesn't help conversion.
**Instead**: 3D should serve a purpose.
Product visualization = good.
Random floating shapes = probably not.
Ask: would an image work?
### ❌ Desktop-Only 3D
**Why bad**: Most traffic is mobile.
Kills battery.
Crashes on low-end devices.
Frustrated users.
**Instead**: Test on real mobile devices.
Reduce quality on mobile.
Provide static fallback.
Consider disabling 3D on low-end.
### ❌ No Loading State
**Why bad**: Users think it's broken.
High bounce rate.
3D takes time to load.
Bad first impression.
**Instead**: Loading progress indicator.
Skeleton/placeholder.
Load 3D after page is interactive.
Optimize model size.
## Related Skills
Works well with: `scroll-experience`, `interactive-portfolio`, `frontend`, `landing-page-desig
Source
git clone https://github.com/ranbot-ai/awesome-skills/blob/main/skills/3d-web-experience/SKILL.mdView on GitHub Overview
Builds immersive, performant 3D web experiences using Three.js, React Three Fiber, and Spline. Specializes in product configurators, 3D portfolios, and interactive, accessible scenes that balance visuals with usability and load performance.
How This Skill Works
Start with selecting the right 3D stack using the 3D Stack Selection patterns (Spline for fast prototypes, React Three Fiber for React apps, or Three.js for maximum control). Follow a structured asset pipeline (3D Model Pipeline and GLTF compression) to web-ready GLB/GLTF assets, then integrate with Canvas/Suspense patterns in React or direct Spline scenes, optimizing for performance and accessibility.
When to Use It
- Launching a web-based product configurator with live 3D models
- Creating a 3D portfolio or immersive homepage to showcase work
- Prototyping 3D concepts quickly using Spline for design reviews
- Building scroll-driven 3D storytelling that responds to user scroll
- Optimizing and embedding web-ready 3D assets (GLB/GLTF) with compression for fast loading
Quick Start
- Step 1: Choose your 3D approach using the 3D Stack Selection (Spline, React Three Fiber, or Three.js)
- Step 2: Prepare assets with the 3D Model Pipeline (GLB/GLTF, poly count under 100k, bake textures, export)
- Step 3: Implement in code or Spline scene (R3F Canvas or Spline), add loading states, and test performance
Best Practices
- Do a 3D Stack Selection before starting to pick Spline, React Three Fiber, or Three.js based on the project needs
- Optimize assets: poly count under ~100k, bake textures, export as GLB/GLTF
- Compress GLTF/GLB using gltf-transform and enable texture compression (webp/ Draco as needed)
- Leverage React Three Fiber patterns (Canvas, Suspense, OrbitControls) or Spline for quick prototyping and loading states
- Test performance across devices and provide progressive enhancement with accessibility in mind
Example Use Cases
- An e-commerce product configurator with interactive 3D models integrated into the product page
- A designer's 3D portfolio with immersive, scroll-responsive scenes
- A marketing landing page featuring scroll-driven 3D storytelling
- Architectural visualization embedded in a portfolio with optimized GLTF assets
- A rapid prototype using Spline to validate concepts before custom development
Frequently Asked Questions
Related Skills
ab-test-setup
ranbot-ai/awesome-skills
Structured guide for setting up A/B tests with mandatory gates for hypothesis, metrics, and execution readiness.
AI/ML Model Testing
PramodDutta/qaskills
Testing machine learning models including accuracy validation, bias detection, drift monitoring, A/B testing, and model regression testing.
web-artifacts-builder
anthropics/skills
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.
miro-automation
davepoon/buildwithclaude
Automate Miro tasks via Rube MCP (Composio): boards, items, sticky notes, frames, sharing, connectors. Always search tools first for current schemas.
00-andruia-consultant
ranbot-ai/awesome-skills
Arquitecto de Soluciones Principal y Consultor Tecnológico de Andru.ia. Diagnostica y traza la hoja de ruta óptima para proyectos de IA en español.
performance-optimization
JanSzewczyk/claude-plugins
Performance optimization patterns for Next.js applications. Covers bundle analysis, React rendering optimization, database query optimization, Core Web Vitals, image optimization, and caching strategies.