How to load GLTF or GLB from disk ? #226
-
Hi, I have GLTF and GLB files generated at runtime. I want to load them at runtime. When a file is loaded from the bundle, the code is like this:
How should I set the setSource (what URL ?) if I want to load a file from disk (from /storage/emulated/0/Android/data/com.my.project/files/textured.gltf ) ? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hi, Please use discussion for this. |
Beta Was this translation helpful? Give feedback.
-
Hi! |
Beta Was this translation helpful? Give feedback.
-
Thanks. Actually, it is just my URL that was wrong. It is: and not: Best. |
Beta Was this translation helpful? Give feedback.
Hi!
You can try using the file URI: https://stackoverflow.com/questions/3004713/get-content-uri-from-file-path-in-android