.gltf 模型未出现在浏览器中 [英] .gltf model not appearing in the browser

查看:29
本文介绍了.gltf 模型未出现在浏览器中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 .gltf 文件.我可以用 3d 查看器打开它.但是,当我尝试在浏览器中加载它时,它会加载(控制台中没有错误),但它没有出现在场景中.我尝试在 (

I have a .gltf file. I can open this with 3d viewer. But, when I try to load this in the browser, it loads (no error in the console),, but it doesn't show up in the scene. I tried to load the model in (https://threejs.org/editor/), but, failed.

How can i fix this??? please help..

The file link: https://drive.google.com/file/d/1ckC1qiIRGDskO240Y5N7oIBJufocEiTb/view?usp=sharing

解决方案

It all works fine. Your 3d Model is simply to big. Change the scale in THREE.js to 0.001 or change the size of the model in an editor like blender. Also add a light source of some sort. Otherwise it will be all black.

这篇关于.gltf 模型未出现在浏览器中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆