【发布时间】:2021-01-21 08:34:03
【问题描述】:
我在 Gridsome 项目中使用 Three.js,但无法使用 GLTFLoader 导入 .glb 文件(3D 模型)。 Gridsome 考虑存储在 src/assets 中的 img (png/jpg) 或 .js 文件,但不考虑 glb。
我的文件层次结构:
我的导入功能:
this.loader.load('../assets/models/mars.glb', function(gltf) {
let scale = 5.6;
});
加载文件时收到 404 错误。
有什么想法吗?
【问题讨论】:
标签: javascript vue.js three.js blender gridsome