-
我的思路获取到File对象后,通过
|
Beta Was this translation helpful? Give feedback.
Replies: 0 comments 5 replies
-
@zhuxudong 后面把 glTFParser export 出去才可以吧 |
Beta Was this translation helpful? Give feedback.
-
内置的 parser 也不支持解析 file,可以先把file 转成blob url 解决 |
Beta Was this translation helpful? Give feedback.
-
file 转成 json 更直接一点吧 |
Beta Was this translation helpful? Give feedback.
-
好的,学习官方的代码解决了。https://github.com/oasis-engine/oasis-engine.github.io/blob/main/src/pages/gltf-viewer.tsx |
Beta Was this translation helpful? Give feedback.
-
@zhuxudong 这个功能做一些本地工具挺常用,加个 playground 吧 |
Beta Was this translation helpful? Give feedback.
好的,学习官方的代码解决了。https://github.com/oasis-engine/oasis-engine.github.io/blob/main/src/pages/gltf-viewer.tsx