three-js-interactive-builder
Three.js Interactive Builder
Build production-ready Three.js visualizations with algorithmic art principles.
Core Architecture
Every project follows modular synthesis philosophy: components as oscillators, connections as patches.
project/
├── index.html # Entry point with canvas
├── src/
│ ├── main.js # Scene orchestrator
│ ├── geometry/ # Shape generators
│ ├── animation/ # Temporal controllers
│ ├── shaders/ # GLSL programs
│ └── utils/ # Math helpers
└── assets/ # Textures, fonts
Quick Start
- Copy boilerplate from
assets/threejs-boilerplate/ - Initialize scene with preferred renderer settings
- Add geometry generators from
scripts/ - Wire animation loops
Geometry Patterns
Sacred Geometry Primitives
Use scripts/sacred_geometry.py to generate vertex data for:
- Flower of Life: Overlapping circles, customizable depth
- Metatron's Cube: 13-circle formation with connecting lines
- Sri Yantra: 9 interlocking triangles
- Seed of Life: 7-circle genesis pattern
- Vesica Piscis: Intersection geometry
Spiral Systems
For gravitational/golden spirals:
function goldenSpiral(loops, pointsPerLoop, scale) {
const phi = (1 + Math.sqrt(5)) / 2;
const points = [];
for (let i = 0; i < loops * pointsPerLoop; i++) {
const theta = i * 0.1;
const r = scale * Math.pow(phi, theta / (2 * Math.PI));
points.push(new THREE.Vector3(r * Math.cos(theta), r * Math.sin(theta), 0));
}
return points;
}
Lane Systems
For multi-lane visualizations (soul lanes, data streams):
function createLaneSystem(laneCount, radius, spacing) {
const lanes = [];
for (let i = 0; i < laneCount; i++) {
lanes.push({ radius: radius + (i * spacing), objects: [], speed: 1 / (i + 1) });
}
return lanes;
}
Animation Patterns
Temporal Perspective
For simultaneous time visualization (all moments visible at once):
class TemporalController {
constructor(timeline) {
this.moments = timeline;
this.currentView = 'linear';
}
setSimultaneous() {
this.moments.forEach((m, i) => {
m.mesh.visible = true;
m.mesh.material.opacity = 0.3 + (0.7 * (i / this.moments.length));
});
}
}
Breath-Based Animation
Organic pulsing using sine waves:
function breathe(object, speed = 1, amplitude = 0.1) {
const scale = 1 + Math.sin(Date.now() * 0.001 * speed) * amplitude;
object.scale.setScalar(scale);
}
Shader Patterns
See references/glsl-patterns.md for glow effects, noise functions, color gradients, and symbol rendering.
Project Types
Algorithmic Art: Define rules → Generate geometry → Add temporal dimension → Apply aesthetic layer
Interactive Visualization: OrbitControls → Raycasting → UI overlay → State management
Narrative Experience: Story beats as states → Transitions → Audio cues → Navigation
Performance
- BufferGeometry for >1000 vertices
- InstancedMesh for repeated objects
- LOD for complex scenes
- Merge geometries to reduce draw calls
References
references/glsl-patterns.md- Shader code libraryreferences/sacred-geometry-math.md- Mathematical foundations
More from 4444j99/a-i--skills
creative-writing-craft
Craft compelling fiction and creative nonfiction with attention to structure, voice, prose style, and revision. Supports short stories, novel chapters, essays, and hybrid forms. Triggers on creative writing, fiction writing, story craft, prose style, or literary technique requests.
184skill-creator
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
15generative-music-composer
Creates algorithmic music composition systems using procedural generation, Markov chains, L-systems, and neural approaches for ambient, adaptive, and experimental music.
12generative-art-algorithms
Create algorithmic and generative art using mathematical patterns, noise functions, particle systems, and procedural generation. Covers flow fields, L-systems, fractals, and creative coding foundations. Triggers on generative art, algorithmic art, creative coding, procedural generation, or mathematical visualization requests.
10interfaith-sacred-geometry
Generate sacred geometry patterns with interfaith symbolism for spiritual visualizations and art. Use when creating visual representations that honor multiple religious traditions, designing meditation aids, building soul journey visualizations, or producing art that bridges sacred traditions through geometric harmony. Triggers on sacred geometry requests, interfaith symbol design, spiritual visualization projects, or multi-tradition sacred art.
8github-repo-curator
Organize GitHub repositories for professional presentation and maintainability. README templates, documentation standards, repo organization patterns, and profile optimization. Triggers on GitHub cleanup, repo organization, README writing, or open source presentation requests.
5