c1c4c04ee0b2e62664c5a8d3f6856bb100d6efaf
Replace ~75 individual THREE.Mesh glass tiles and N individual ConeGeometry spire Meshes with InstancedMesh, reducing draw calls from O(n) to O(1) per group. Glass tiles: one InstancedMesh with StaticDrawUsage replaces ~75 glassTileMat.clone() meshes. Edge line glow (LineSegments) retained individually for per-distance opacity animation. Island spires: two-pass approach — collect spire params first, then build one InstancedMesh with a unit cone (r=1, h=1) scaled per instance via the instance matrix. Mathematically equivalent to the original per-spire ConeGeometry since T*R*S on a unit cone produces the same world-space vertices as T*R applied to a pre-scaled cone. Fixes #425
◈ The Nexus — Timmy's Sovereign Home
A Three.js environment serving as Timmy's sovereign space — like Dr. Strange's Sanctum Sanctorum, existing outside time. The Nexus is the central hub from which all worlds are accessed through portals.
Features
- Procedural Nebula Skybox — animated stars, twinkling, layered nebula clouds
- Batcave Terminal — 5 holographic display panels arranged in an arc showing:
- Nexus Command (system status, harness state, agent loops)
- Dev Queue (live Gitea issue references)
- Metrics (uptime, commits, CPU/MEM)
- Thought Stream (Timmy's current thoughts)
- Agent Status (all agent states)
- Morrowind Portal — glowing torus with animated swirl shader, ready for world connection
- Admin Chat (Timmy Terminal) — real-time message interface, ready for Hermes WebSocket
- Nexus Core — floating crystalline icosahedron on pedestal
- Ambient Environment — crystal formations, floating runestones, energy particles, atmospheric fog
- WASD + Mouse Navigation — first-person exploration of the space
- Post-Processing — Unreal Bloom + SMAA antialiasing
Architecture
the-nexus/
├── index.html # Entry point with HUD overlay, chat panel, loading screen
├── style.css # Nexus design system (dark space theme, holographic panels)
└── app.js # Three.js scene, shaders, controls, game loop
Running Locally
npx serve . -l 3000
# Open http://localhost:3000
Roadmap
- Wire chat to Hermes WebSocket (
/api/world/ws) - Pull live data into terminal panels from Timmy's actual state
- Portal walk-through interaction to load destination worlds
- Timmy's avatar (lizard wizard body he designs himself)
- Connect to AlexanderWhitestone.com as public entry point
- Integrate existing Replit timmy-tower world code
Related
- Gitea Issue: #1090 — EPIC: Nexus v1
- Live Demo: Deployed via Perplexity Computer
Part of The Timmy Foundation
Description
Timmy's Sovereign Home — Three.js environment with Batcave terminal, portal architecture, and admin chat. The central hub from which all worlds are accessed.
Readme
29 MiB
Languages
Python
72.1%
JavaScript
15.1%
HTML
5.4%
Shell
4.2%
CSS
3%
Other
0.1%