带开火按钮和分解视图的 Three.js 程序化枪械模型

四模型对比测试中 Claude Opus 5 细节最佳:Three.js 程序化枪械可带声音开火,并拆解为带标签的零件。

Claude Code + Three.js(仅代码)Wandy 2
真实模型 · 360°两者都基于同一张照片:左边是 Claude Code(Opus 5.5)用 Three.js 代码建模的一次未经修改的运行结果;右边是 Wandy 2。

创建精细的 3D 模型

单靠代码只能做出简单的形状。Wandy 2 能用一张照片生成带纹理的 3D 模型,直接用在同一个场景里。

Wandy3D 制作说明

作者没有公开提示词,因此我们写下了复现这个作品的方法。

Build a single self-contained HTML file with Three.js that shows a fully procedural firearm model with no external assets. Model it at real-world scale from named reference stations: a carbine with a collapsible stock, quad rail with panel numbers, red-dot sight, foregrip and bipod, or a compact machine pistol or submachine gun with ribbed housing, threaded barrel and a translucent magazine. Add engraved markings on the sides. Use a dark studio with a narrow overhead light strip so black-on-black parts separate through different roughness values, not colour. Add a small fire button that plays a Web Audio gunshot, a muzzle flash, recoil and ejected brass. Add a disassemble toggle that explodes the model into labelled parts and rebuilds it smoothly. Orbit camera controls. Done means the model renders cleanly, fires, disassembles and reassembles without glitches, and the lettering reads correctly from both sides.

如何使用这条提示词

  1. 在编程工具里把构建说明交给 Claude Opus 5,要求输出单个 Three.js HTML 文件。

  2. 把枪换成无人机或相机等其他硬表面物体,并重命名零件。

  3. 打开文件测试开火与拆解,再让它修复镜像文字或改进灯光。

原帖你是作者吗? 请联系我们修改或删除此页面