直列四缸发动机
直列四缸 DOHC 发动机的活塞、曲轴、凸轮和气门按点火顺序 1-3-4-2 联动,可以悬停识别部件并一键分解。场景测试模型对机械传动关系、透明/爆炸视图和部件说明系统的实现。
Gemini 网页版(4 Argon)Gemini 网页版(3.8 Flash)DeepSeek V4.1 FlashOpus 5.5原帖 ↗
原始提示词
下面是从提示词文件中原样复制的正文。同一场景的各版本使用同一份提示词;为避免重复,这里只完整展示一次。
Build me a car engine in interactive 3D, from air intake to exhaust, in one HTML file with Three.js. Make it look real: an inline-four with the air filter and throttle body, the intake manifold, the cylinder head with camshafts and valves, the engine block, four pistons on connecting rods, the crankshaft, the flywheel, the timing belt, the oil pan, and the exhaust manifold. Each spark plug fires a glow in its cylinder in the right firing order. The crankshaft turns, the pistons move up and down in step with it, the camshafts open and close the valves at the right times, and the timing belt runs. I can drag to orbit around it and scroll to zoom. Add an Explode button. When I press it, every part slides apart to its own spot with its name on a label: the head and cams go up, the oil pan drops down, the manifolds move out to the sides, and the pistons and crank pull out of the block. 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. 【通用技术要求】 - 直接输出一个可在现代浏览器打开的完整单文件 HTML 代码(一个代码块,从 <!DOCTYPE html> 到 </html>,不要省略任何部分)。页面语言 zh-CN,标题用中文。 - 使用 Three.js r160,通过 importmap 从 CDN 固定版本加载:"three": "https://unpkg.com/three@0.160.0/build/three.module.js","three/addons/": "https://unpkg.com/three@0.160.0/examples/jsm/"。除此之外不引用任何外部资源。 - 所有几何体、材质、贴图都用代码程序化生成(可用 Canvas/Shader 生成贴图),不要加载 glb/gltf/obj/fbx、图片或 SVG。 - 使用 OrbitControls 支持拖动旋转、滚轮/双指缩放(第一人称玩法的场景除外,按场景说明)。 - 画布全屏、响应式适配窗口大小变化和手机屏幕,devicePixelRatio 最多取 2,目标稳定 60FPS。 - 页面左上角放一个固定的链接「← 返回 3D 作品」,href="../",半透明奶油色圆角小按钮样式。 - 在 </body> 前加上这一行(原样保留,用于展示提示词):<script src="../prompt-panel.js" data-id="inline-four-web"></script> - 控制台不能有报错。不要问我任何问题,直接构建。
各版本的提示词文件只差用于展示提示词的 data-id 行和生成方式说明,场景描述正文相同。
版本对比
文件大小与行数来自该版本的单文件 index.html;技术标签由简单正则从源码中检测,只表示代码里出现了这类 API,不代表实现质量。
| 模型 | 在线场景 | 大小 | 行数 | 检测到的 three.js 技术 |
|---|---|---|---|---|
| Gemini 网页版(4 Argon) 提示词 |
打开 ↗ | 69.3 KB | 2,119 | OrbitControlsShadow mapsRaycast interactionSky / fogWater / reflections |
| Gemini 网页版(3.8 Flash) 提示词 |
打开 ↗ | 44.9 KB | 1,318 | OrbitControlsShadow mapsRaycast interactionSky / fog |
| DeepSeek V4.1 Flash 提示词 |
打开 ↗ | 43.4 KB | 1,325 | OrbitControlsRaycast interactionCSS2D labels |
| Opus 5.5 提示词 |
打开 ↗ | 52.0 KB | 1,140 | OrbitControlsShadow mapsInstancedMeshRaycast interactionParticles / pointsCSS2D labelsKeyboard controls |
对比观察
以下记录来自逐版阅读源码,只描述代码中能观察到的结构、动画与交互差异,不对模型作笼统排名。
DeepSeek 版用 3 个 Mesh 加 19 个 BoxGeometry、4 个 RoundedBoxGeometry 和 15 个 CylinderGeometry 搭发动机,CSS2D 标注和悬停高亮是主要交互,按钮只有「爆炸视图」,几何偏骨架化。Flash 版用 40 个 Mesh、20 个 Cylinder,三个按钮(零件炸开、暂停、透明缸体)加右侧零件说明面板,是最早把教学信息面板做完整的版本。Opus 5.5 版用 20 个 BoxGeometry 和 11 个 RoundedBoxGeometry 和 CSS2D 标注,增加透视与气流开关,点火顺序用四个高亮标签实时显示。Web 版 73 个 Mesh、39 个 Cylinder,悬停高亮、爆炸、暂停、缸体透视、转速滑杆齐全,部件数量和标注密度最高。Flash 的右侧面板会随悬停部件更新名称和功能,Web 的转速滑杆可以从 650 RPM 起调,Opus 5.5 的气流开关则用粒子显示进排气路径。
这个场景是怎么做出来的
同一条提示词被分别交给下列模型。提示词要求生成一个可直接在现代浏览器打开的单文件 HTML,three.js 通过 CDN 的 import map 固定版本加载,几何体、材质和贴图全部由代码程序化生成,不能使用外部模型或图片。
生成结果作为静态页面发布在 GitHub Pages 上,没有构建步骤,也没有后端。页面里的尺寸、行数和技术标签是生成后从源码统计的;提示词原文公开在 3d/prompts/ 下,方便对照或复现。
发布前会检查页面能否加载、交互是否可用、移动端布局是否正常,必要时做站点层面的集成修正;场景内容本身由模型生成。下面列出每个版本使用时的模型说明。
- Gemini 网页版(4 Argon) 同样的提示词,在 Gemini 网页上用 4 Argon(思考:高)生成。
- Gemini 网页版(3.8 Flash) 同样的提示词,在 Gemini 网页上用 3.8 Flash 生成。
- DeepSeek V4.1 Flash 同样的提示词,直接调用 ModelScope API 上的 DeepSeek-V4.1-Flash 生成。
- Opus 5.5 同一提示词,用 Claude Opus 5.5 生成。