Skip to main content
100%

Fork of Fork of Spinning Rainbow Starfield

✓ Published0🌍 Public
NNita
Last edited Jul 29, 2025
Created on Jul 29, 2025

A colorful 3D starfield flight simulator immerses the viewer in a tunnel of thousands of stars, rendered as glowing points that stream past as the viewpoint steers through space. The visualization uses Three.js with a custom GLSL ShaderMaterial and BufferGeometry to draw 5,000 stars, while mouse input controls rotation with inertia and scrolling adjusts speed. A cyan crosshair tracks the cursor, and a speed indicator displays the current velocity.

AI-generated description

3D Starfield Flight Simulator

An immersive 3D starfield flight simulator built with Three.js featuring smooth flight controls, dynamic speed adjustment, and visual effects.

Features

  • Smooth Flight Controls: Mouse-controlled steering with realistic inertia
  • Variable Speed: Scroll to adjust flight speed, spacebar for boost
  • Visual Effects: Custom shader-rendered stars with glowing crosshair
  • Performance Optimized: Uses BufferGeometry and shaders for smooth 60fps
  • Responsive Design: Adapts to any screen size

Controls

  • Mouse Movement: Steer left/right and up/down
  • Mouse Wheel: Increase/decrease flight speed
  • Spacebar: Activate boost mode
  • Responsive: Works on desktop and mobile

Technical Details

  • Built with Three.js WebGL renderer
  • Custom vertex/fragment shaders for star rendering
  • Efficient BufferGeometry for 5000+ stars
  • Smooth interpolation and inertia systems
  • Real-time star field regeneration

Browser Support

Modern browsers with WebGL support required. Tested on:

  • Chrome 90+
  • Firefox 88+
  • Safari 14+
  • Edge 90+
MIT Licensed

Similar vizzes