Creator: Vikas Kumar Singh
Live Demo: Galaxy Voyager Video Showcase: Youtube Demo
Galaxy Voyager is a real-time, browser-based space exploration simulator built entirely on the Three.js ecosystem. The core challenge was to render a vast, data-driven universe at a cosmic scale, pushing the boundaries of what can be achieved in a web browser without traditional 3D assets.
The entire project is built declaratively using React Three Fiber (R3F), which was instrumental in managing the complex scene graph across 220+ unique star systems.
Key technical features implemented with Three.js:
-
Procedural Generation: Wormhole Network is generated procedurally using
stars data to create dynamic wormhole network at every visit -
Advanced Post-Processing: The project’s unique visual identity was achieved through a sophisticated post-processing pipeline. Using R3F’s ecosystem (
@react-three/postprocessing), a chain of effects like bloom, Chromatic aberration,noise, and color adjustments were layered to give stars their intense glow and the universe its ambient feel. The wormhole travel sequence was created by chaining several passes together to distort and warp the final rendered image in real-time. -
Performance at Scale: To maintain a stable 50-60 FPS, performance was critical. The solution for handling cosmic-scale floating-point precision issues involved a world-partitioning system, where each star system is a self-contained
THREE.Scenethat is dynamically loaded and unloaded, with the camera and world origin re-centered on each jump. -
Data Visualization: The project parses and visualizes real orbital data from NASA’s APIs, converting complex ephemeris data into dynamic
Linegeometries that update over time.
This project was a deep dive into the power and flexibility of Three.js for creating large-scale, data-driven, and visually rich experiences on the web.
Technology Stack:
-
Core: Three.js, React Three Fiber (R3F)
-
Visuals: @react-three/postprocessing
-
State Management: Zustand
-
Frontend: React
-
UI: React Flow (for the 2D star map)