WarpTorch: Interactive 3D Warp Drive Simulation built with React Three Fiber & PyTorch

Hi everyone!

Want to share my latest pet-project: WarpTorch — an open-source spacetime metric simulator.

It is a modern web-focused rewrite of WarpFactory (a famous academic tool made by the Applied Physics team). The original was built in MATLAB, which is expensive and limited to static desktop plots.

I wanted to make warp drive physics interactive, accessible, and fast, so I moved the core calculations to Python/PyTorch for GPU acceleration and built a modern web UI.

Tech Stack:

  • Frontend: React, Three.js / React Three Fiber (R3F) for real-time 3D spacetime deformation grid visualization.

  • Backend: Python, PyTorch (CUDA/ROCm) for 10x-100x faster tensor calculations compared to standard CPU loops.

  • Deployment: Docker support for easy one-command local setup.

Warptoch-demo

The UI allows you to tweak parameters like warp bubble radius, velocity, or shell thickness and see the Alcubierre or Lentz metric distortion in real-time right in your browser.

GitHub Repo: https://github.com/just-omar/WarpTorch

Would love to hear your thoughts on the 3D grid performance and visualization approach. If you like the idea, please give it a star on GitHub!

2 Likes