Piston Engine Versus Electric Motor

By @StefanoStraus. Made with Claude Opus 5.5. Watch the original post.

Remake prompt (written by Lumpong Automated)

Build an interactive 3D explainer in one HTML file with Three.js (WebGPU if available, WebGL fallback) and record a 32-second landscape 16:9 (1280x720) screen-recording style demo.

Title 'PISTONS VS MAGNETS' (the second line a blue-violet gradient) with a small orange kicker 'SAME SHAFT SPEED, TWO MACHINES'. Left: a petrol engine with four pistons, a crank and sixteen valves; right: an electric motor where a turning magnetic field pulls a rotor. Pistons large in the foreground with silver rings, a toothed flywheel, an orange-red block, springs above and glowing red valves.

UI: stat tiles (Torque Nm 198 / 207, Efficiency % 33 / 96, Heat kW 197 / 3.6), a one-line live fact ('At 4600 rpm the engine fires 153 times a second.'), a glass panel with Both / Engine / Motor tabs, a shaft speed slider up to 4600 RPM with a torque curve, '1/10x' and 'Take apart' buttons, and a part card for Pistons (mean speed 13.2 m/s, peak force 16 kN, rings 3 each). Dark navy background, orange-red and blue accents, monospaced small labels, a 'Follow for more' pill and an fps counter. The demo should push the RPM, open the cylinders and slow time to 1/10.

Browse all 1008 videos