Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

模型格式支持 #10

Closed
ycl0916 opened this issue Jun 30, 2022 · 1 comment
Closed

模型格式支持 #10

ycl0916 opened this issue Jun 30, 2022 · 1 comment

Comments

@ycl0916
Copy link

ycl0916 commented Jun 30, 2022

请问模型除了glb和gltf还能支持其他格式吗,gltf-loader.js 是怎么获取的,能不能拓展支持其他格式呢

@sanyuered
Copy link
Owner

1、理论上,支持three.js所有的3D格式,比如.obj、.fbx等。gltf-loader.js只支持.gltf和.glb,其他3D格式需要对应的加载器。

2、gltf-loader.js来自微信小程序官方的项目:https://github.com/wechat-miniprogram/threejs-miniprogram

3、目前,虽然小程序支持渲染3D模型,但是有几个限制。3D模型的纹理图片不能太大,否则会显示为黑色。即使不包含纹理图片的3D模型,可能也无法显示。其他3D格式的模型大小,一般都比.gltf大,可能更加无法显示。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants