React native, local model cache #2814
Unanswered
GabrieleCicconetti
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi every one, i'm trying to download an fbx from a server and store it locally. After that i need to display that model. Basically i need it to be accessible offline.
My current approach is to download the model with RNFetchBlob and save it locally (in a folder like /storage/emulated/0/Download/model.fbx).
Now i need to read that file and put it on the canvas. I'm trying with RNFetchBlob.fs.readFile and then parse it with the threejs fbx loader. I also tried with THREE.FileLoader (which says that you can use data uris but i doesn't work, he wants http or https urls).
Is this a possible way to do it? Or do i need to completely change approach?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions