Shell
EJB.Ventures v2 - Three.js Flower Landscape
WATCHER Protocol
Claude's Role: Orchestrator and quality gate. Each phase completes with:
- Verification checkpoint (tests, visual inspection via Playwright)
- Debug any issues found
- Explicit greenlight before advancing
Phase 1: Foundation Setup
Goal: Three.js scene with flower image visible
Assigned Tools
| Tool | Purpose |
|---|---|
| Subagent: fullstack-developer | Build initial HTML/JS structure |
| MCP: Playwright | Visual verification of rendering |
| Skill: ui-builder | Style loading screen |
Tasks
- Create
/v2/directory structure - Copy and optimize source image (remove watermark, create resolutions)
- Set up Three.js scene (renderer, camera, scene)
- Load flower texture on PlaneGeometry
- Add OrbitControls for dev exploration
Verification (WATCHER)
- Playwright screenshot confirms flower renders full-frame
- OrbitControls work (can rotate/zoom)
- No console errors
- Image loads < 3 seconds
Phase 2: Camera Path System
Goal: Scroll-controlled camera movement along predefined path
Assigned Tools
| Tool | Purpose |
|---|---|
| Subagent: fullstack-developer | Implement camera path logic |
| MCP: Playwright | Test scroll interactions |
Tasks
- Define waypoint array (positions, rotations, labels)
- Map scroll wheel to path progress (0-1)
- Implement smooth camera interpolation (lerp/slerp)
- Add waypoint snapping with debounce
Verification (WATCHER)
- Playwright: scroll through all waypoints
- Camera moves smoothly without jitter
- Waypoint labels match expected positions
Phase 3: Particle System
Goal: Convert image to interactive particle point cloud
Assigned Tools
| Tool | Purpose |
|---|---|
| Subagent: fullstack-developer | Core particle implementation |
| Plugin: performance-optimizer | Ensure 60fps target |
| MCP: Playwright | Visual verification |
Tasks
- Extract pixel data via offscreen canvas
- Generate BufferGeometry (50k particles)
- Create PointsMaterial with vertexColors
- Implement scatter/assemble animations
- Add mouse proximity interaction
Verification (WATCHER)
- Particles form recognizable flower shape
- Colors match original image
- Mouse interaction displaces nearby particles
- Performance: 60fps on desktop (measure via console)
Phase 4: Mode Toggle & Transition
Goal: Switch between Color (Personal) and Particle (Professional) modes
Assigned Tools
| Tool | Purpose |
|---|---|
| Subagent: frontend-developer | Toggle UI component |
| Skill: ui-builder | Style toggle button |
| MCP: Playwright | Test transitions |
Tasks
- Create fixed-position toggle button
- Implement 1.5s transition animation
- State management with localStorage
Verification (WATCHER)
- Toggle switches modes visually
- Transition animation smooth (no flicker)
- State persists across page reload
- Keyboard shortcut (P) works
Phase 5: Content Overlays
Goal: Display text/links at each waypoint
Assigned Tools
| Tool | Purpose |
|---|---|
| Subagent: frontend-developer | Overlay system |
| Skill: ui-builder | Typography/layout |
| MCP: Playwright | Verify content sync |
Tasks
- HTML overlay container (absolute positioned)
- Define content for each waypoint × mode
- Sync fade in/out with camera position
- Add links to existing MDX routes
Verification (WATCHER)
- Content appears at correct waypoints
- Fades are smooth, no abrupt cuts
- Links navigate to /personal/, /pro/ correctly
- Typography legible on all backgrounds
Phase 6: Leafhopper Easter Egg Setup
Goal: Define hit zone and interaction for hidden leafhopper
Assigned Tools
| Tool | Purpose |
|---|---|
| Subagent: fullstack-developer | Hit detection logic |
| MCP: Playwright | Test hover/click |
Tasks
- Define hit region at (42%, 58%) with 5% radius
- Implement hover detection via raycaster
- Add visual feedback (glow, cursor change)
- Branch click handler by current mode
Verification (WATCHER)
- Hover triggers visual feedback at correct location
- Cursor changes on hover
- Click in Personal mode → triggers Phase 7
- Click in Professional mode → triggers Phase 8
Phase 7: Kirlian Effect (Personal Mode Easter Egg)
Goal: Transform flower into electric Kirlian photograph
Assigned Tools
| Tool | Purpose |
|---|---|
| Subagent: fullstack-developer | Shader implementation |
| MCP: Perplexity | Research Kirlian shader techniques |
| MCP: Playwright | Visual verification |
Tasks
- Fade to black background
- Implement edge detection (Sobel shader)
- Animate corona discharge (blue/cyan/violet)
- Exit on click
Verification (WATCHER)
- Kirlian effect visually striking
- Colors: electric blue, cyan, violet, white
- Animation flickers naturally
- Click exits back to normal mode
Phase 8: Hand Tracking Demo (Professional Mode Easter Egg)
Goal: Control particles with webcam hand tracking
Assigned Tools
| Tool | Purpose |
|---|---|
| Subagent: ai-engineer | MediaPipe integration |
| MCP: Playwright | Permission flow testing |
| Plugin: testing-suite | Hand tracking accuracy |
Tasks
- Prompt + webcam permission flow
- Lazy-load MediaPipe Hands
- Map landmarks to controls (position, pinch, wave)
- PiP feedback overlay
- Exit via timeout or gesture
Verification (WATCHER)
- Permission request appears correctly
- Hand detected and visualized
- Particle control responsive
- Exit works (timeout 30s or gesture)
Phase 9: Mobile & Gyroscope
Goal: Device orientation navigation for mobile
Assigned Tools
| Tool | Purpose |
|---|---|
| Subagent: frontend-developer | Gyro/touch implementation |
| MCP: Playwright | Emulate mobile viewport |
| Plugin: performance-optimizer | Mobile performance tuning |
Tasks
- Device detection
- Gyroscope permission + calibration UX
- Map tilt to path progress
- Touch fallback (swipe)
- Reduce particle count for 30fps target
Verification (WATCHER)
- Mobile viewport renders correctly
- Touch navigation works
- Performance acceptable (measure fps)
- No layout breaks
Phase 10: Polish & Deploy
Goal: Production-ready experience
Assigned Tools
| Tool | Purpose |
|---|---|
| Plugin: performance-optimizer | Final profiling |
| Plugin: testing-suite | Cross-browser tests |
| Subagent: code-reviewer | Final code review |
| MCP: Playwright | Full journey test |
Tasks
- Loading experience (progress bar, particle formation)
- Cross-browser testing (Chrome, Firefox, Safari, Edge)
- Performance profiling + optimization
- Deploy to ejb.ventures root
Verification (WATCHER)
- All browsers render correctly
- Full journey works: start → petals → center → return
- Easter eggs functional
- Performance: 60fps desktop, 30fps mobile
- No console errors/warnings
Source Assets
- Image:
_DSF0127.jpeg(watermark to be removed) - Leafhopper location: 42% X, 58% Y (5% hit radius)
Files to Create
/v2/
├── index.html # Main entry
├── assets/
│ ├── flower-4k.jpg # Full res (watermark removed)
│ ├── flower-2k.jpg # Desktop
│ └── flower-1k.jpg # Mobile
└── README.md
Existing Files to Preserve
/app/personal/*- MDX routes/app/pro/*- MDX routes/content/*- MDX content
Success Criteria
- 60fps desktop, 30fps mobile
- Smooth mode transitions
- Cinematic camera path
- Easter eggs discoverable but not obvious
- MDX content links functional
- All major browsers + mobile supported