Build me a V8 car engine in interactive 3D, in one HTML file with Three.js.
Make it look real: the engine block with its two banks of cylinders in a V, the pistons and connecting rods, the crankshaft, the camshafts and valves on top, the intake manifold and the exhaust headers glowing hot. The pistons pump up and down, the crankshaft turns, and the spark plugs flash when each cylinder fires. I can drag to orbit around it and scroll to zoom.
Add an Explode button. When I press it, every part slides apart with its name on a label. Press it again and it all snaps back together. When I hover a part, it lights up and shows one line on what it does.
No images. Do not ask me any questions. Just build it.
中文译文
用 Three.js 在一个 HTML 文件里为我构建一台可交互的 3D V8 汽车发动机。
让它看起来真实:带两列呈 V 形排列气缸的发动机缸体、活塞与连杆、曲轴、顶部的凸轮轴与气门、进气歧管,以及烧得发红的排气歧管。活塞上下往复,曲轴旋转,每个气缸点火时火花塞闪光。我可以拖拽环绕观察,滚动缩放。
加一个 Explode 按钮。我按下时,每个零件滑开,并带有标注其名称的标签。再按一次,所有零件咔哒一声合回原位。当我将鼠标悬停在某个零件上时,它会亮起,并显示一行关于其作用的说明。
不要使用图片。不要问我任何问题。直接做出来。