Skip to content

请问该如何正确加载用户通过input[type=file]选择的模型文件? #31

Answered by Jarod-Xie
Jarod-Xie asked this question in Engine
Discussion options

You must be logged in to vote

内置的 parser 也不支持解析 file,可以先把file 转成blob url 解决

好的,学习官方的代码解决了。https://github.com/oasis-engine/oasis-engine.github.io/blob/main/src/pages/gltf-viewer.tsx

Replies: 0 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Jarod-Xie
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Engine
Labels
None yet
4 participants