Multisutra Scientific Series — Module: Computer Vision & Relativistic Optics
The Geometry of 3D Perspective Projection
To create the illusion of flying through a star field every point in 3-D space must be mapped
to a 2-D screen pixel using a perspective transform:
where f is the virtual focal length and Z is the depth from the viewer.
As Z → 0 the projected position diverges, producing the iconic radial star-streak
of warp speed.
Warp Factor and Relativistic Brightness
Star brightness is modulated by a Doppler-inspired formula that depends on speed:
At high warp factors approaching stars appear blue-white; receding stars dim — just as
in special relativity.
Motion Blur via Trail Rendering
Each frame alpha-composites the current position with the previous frame, generating a streak
whose length is proportional to angular velocity:
What You Get
- Python (Pygame): Telemetry HUD, mouse-wheel speed control, motion-blur renderer.
- HTML version: Canvas-based, zero dependencies, runs in any browser.
- Authentic GIF preview generated directly from the simulation.
- README with physics derivations and setup guide.