A web-based 3D engine simulator featuring multiple engine types with interactive controls and a real-time dynamometer, wrapped in a retro CRT-terminal UI.
- Interactive 3D models rendered with Three.js — orbit, zoom, explode, wireframe.
- Seven engines:
- Cross-Plane V8
- Inline-6
- V12 (60°)
- Radial-9 Aviation
- Bugatti W16
- Stirling Engine (Gamma)
- Steam Engine (stationary)
- Engine spec sheet for the selected engine (layout, displacement, redline, peak power/torque).
- Realistic dyno graph — each engine carries a tuned torque model (rising → peak → fall-off toward redline). Torque and power are drawn on independent auto-scaled axes so the curves cross correctly at 5252 RPM, with a redline zone and a live RPM marker.
- Cohesive terminal UI — searchable engine list, collapsible sidebar, fullscreen and reload controls, loading/error states, and a green-on-black theme that extends into the in-engine controls and dyno panel.
index.html+js/main.js+css/style.css— the application shell (sidebar, spec panel, viewport). Engines load into an<iframe>.engines.js— engine catalog and spec metadata.engines/*.html— each engine is a self-contained Three.js scene.js/sim-core.js— shared module providing the dyno (SimCore.Dyno), the GUI theming helper (SimCore.themeGUI), and the torque/power model. Engines load it as a classic script (no bundler required).
Because engine files are loaded into iframes and js/sim-core.js is shared across them,
serve the folder over HTTP rather than opening index.html from file:// (some browsers
block cross-frame script access on file://). Any static server works, e.g.:
npx http-server . -p 8123 -c-1
# then open http://localhost:8123Saptarshi Samanta