您似乎直接双击打开了本地 HTML 文件 (file:///)。
file:///
出于安全原因,现代浏览器禁止网页直接读取本地文件夹中的 3D 模型文件 (3d.glb)。
3d.glb
解决方法: 1. 在 VSCode 中右键点击 HTML 文件,选择 Open with Live Server。 2. 或者在终端运行 python -m http.server,然后访问 http://localhost:8000。
Open with Live Server
python -m http.server
http://localhost:8000