Overview
Intelligence Space transforms your interests into a living, breathing 3D knowledge graph. Built on WebGL and React Three Fiber, each interest appears as a glowing sphere floating in space, connected by elegant lines that show relationships between concepts.The visualization uses force-directed physics to automatically arrange nodes, creating an organic layout that evolves as you explore.
Rendering Technology
- WebGL Engine
- Node Rendering
- Connection Lines
Intelligence Space uses React Three Fiber, a React renderer for Three.js, to deliver high-performance 3D graphics directly in your browser.The scene uses a dark background (#050505) with 5,000 stars to create a cosmic exploration feeling.
Physics Simulation
The graph uses a real-time force-directed layout that runs at 60 FPS to create natural spacing and movement.How the Physics Works
How the Physics Works
The simulation applies three forces to each node:All forces are combined with damping (0.8) to gradually slow movement and reach equilibrium.
Repulsion Force
Nodes push away from each other to prevent overlap:Spring Force
Connected nodes are pulled together by invisible springs:Center Attraction
Nodes are gently pulled toward the origin to keep the graph centered:Visual Design
Glassmorphism Aesthetic
The UI overlay uses a modern glassmorphism design that floats above the 3D scene:- Frosted glass effect -
backdrop-blur-xlwithbg-white/5 - Subtle borders -
border-white/10for depth - Shadow layering -
shadow-2xlfor elevation
Text Rendering
Node labels use the@react-three/drei Text component with glow effects:
Camera & Lighting
Camera Setup
- Position: 15 units back on the Z-axis
- Field of View: 60 degrees for a natural perspective
- Controllable: Orbit, zoom, and pan enabled
Lighting
Ambient Light
Intensity: 0.5 - provides soft base illumination across the entire scene
Point Light
Position: [10, 10, 10] - creates dimensional shadows and highlights
Environment
The scene uses the “city” preset from@react-three/drei for realistic reflections and ambient lighting.
Performance Optimization
BufferGeometry for Lines
Lines use Three.js BufferGeometry instead of individual line objects, reducing draw calls significantly when hundreds of connections exist.
Efficient Position Updates
Node positions are updated using
useFrame hook with direct mutation instead of React state, avoiding unnecessary re-renders.Loading States
When a node is expanding, an animated loading indicator appears above it:AI Expansion
Learn how Gemini AI generates related interests
Interactive Navigation
Discover how to navigate and explore your graph