expo / expo-three

Utilities for using THREE.js on Expo
MIT License
711 stars 87 forks source link

Obj, mtl File Could be not read #269

Open Timson020 opened 1 year ago

Timson020 commented 1 year ago

It is my code

const assets = Asset.fromModule(require('../assets/3.obj'))
await assets.downloadAsync()
loadAsync([ assets.localUri ], null, res => console.info(res))

It is error msg:

ExpoTHREE.loadObjAsync: Expo.FileSystem Failed to read uri: file:///Users/timson/Library/Developer/CoreSimulator/Devices/4FC3A354-2592-4CA7-A31D-48B717073C77/data/Containers/Data/Application/1E30A1DC-7B04-474D-B384-11BF75F5A66F/Library/Caches/ExponentExperienceData/%2540timson020%252FExpoDemo/ExponentAsset-e6f8d099b88511008b6b450109ea5ee2.obj. ExpoTHREE: FileSystem.readAsStringAsync(file:///Users/timson/Library/Developer/CoreSimulator/Devices/4FC3A354-2592-4CA7-A31D-48B717073C77/data/Containers/Data/Application/1E30A1DC-7B04-474D-B384-11BF75F5A66F/Library/Caches/ExponentExperienceData/%2540timson020%252FExpoDemo/ExponentAsset-e6f8d099b88511008b6b450109ea5ee2.obj) File 'file:///Users/timson/Library/Developer/CoreSimulator/Devices/4FC3A354-2592-4CA7-A31D-48B717073C77/data/Containers/Data/Application/1E30A1DC-7B04-474D-B384-11BF75F5A66F/Library/Caches/ExponentExperienceData/%2540timson020%252FExpoDemo/ExponentAsset-e6f8d099b88511008b6b450109ea5ee2.obj' could not be read
Timson020 commented 1 year ago

i run in ios