A self-contained, offline-capable local server for the Basilisk View 3D visualization interface.
When running Basilisk simulations with bview2D, you need a JavaScript client to visualize the 3D output. By default, bview2D connects to the remote client at basilisk.ida.upmc.fr. This local client provides an alternative that:
- Works offline - No internet required after cloning
- Faster loading - Assets served locally, no network latency
- Always available - Independent of remote server uptime
- Consistent version - Pinned to three.js r124, matching Basilisk's requirements
git clone https://github.com/comphy-lab/bview-local-client.git
cd bview-local-client./deploy.shThis starts a local HTTP server and displays the URL:
Starting Basilisk View local client...
URL: http://localhost:8000/three.js/editor/index.html
Press Ctrl+C to stop the server.Open the editor from the loopback address above. Click Connect to solver, then enter only the WebSocket address of a solver that you trust. The editor ignores solver addresses and scene imports in page URLs. Plain WebSocket connections are accepted only on loopback; remote addresses must use wss://. This does not add authentication to the solver.
If an existing bookmark still opens the old UI, close previous editor tabs and reload. On older installs you may need to clear site data (which also clears locally saved editor state) or use a new loopback port.
If port 8000 is in use, specify a different port:
./deploy.sh 8012./deploy.sh --helpNote: Network Access The launcher binds to loopback only and serves a temporary export of committed client assets. It does not publish your checkout or local files.
bview-local-client/
three.js/ # Full three.js r124 tree with Basilisk editor overlay
build/
editor/ # Basilisk's modified editor
examples/
files/
...
deploy.sh # Start local server
update_upstream_basilisk.sh # Sync with upstream Basilisk
README.md # This file
basilisk/ # (gitignored) Local Basilisk clone for updates
When Basilisk upstream updates their editor:
./update_upstream_basilisk.shThis fetches fresh Basilisk and syncs the editor files to three.js/editor/.
- Python 3 (for the HTTP server)
- A running Basilisk simulation using
bview2D
| Issue | Cause | Solution |
|---|---|---|
| Blank page | Missing assets | Verify three.js/ contains the full r124 tree |
| 404 errors in console | Wrong server root | Ensure deploy.sh runs from repo root |
Page won't load via file:// |
Browser security | Must serve over HTTP, use ./deploy.sh |
| Port in use | Another process | Try ./deploy.sh 8012 with a different port |
This repository combines:
- three.js r124: The base 3D library version that Basilisk's client was built against
- Basilisk editor overlay: Custom modifications from
basilisk/src/jview/three.js/editor/
The editor must be served at the path /three.js/editor/index.html to maintain compatibility with bview2D.
This repository contains:
- three.js (MIT License) - https://github.com/mrdoob/three.js
- Basilisk View modifications (GPL) - https://basilisk.fr