ReactVision / viro

ViroReact: The AR and VR library for React Native 📳💙💛🤍💚
MIT License
1.31k stars 149 forks source link

Couldn't load Viro3DObject resources from remote location #119

Closed sanoopks closed 2 years ago

sanoopks commented 2 years ago

Environment

Please provide the following information about your environment:

  1. Development OS: Mac
  2. Device OS & Version: Android 10 or iOS 15 is your device running on?
  3. Version: ViroReact 2.21.1 and React Native 0.66.4
  4. Device(s): Moto One Fusion Plus

Description

I am trying to load a 3D object from the remote server. The 3D object is loading well but not the resources, the MTL file is not loading. It is working well with local files.

Reproducible Demo

<Viro3DObject source={{ uri: 'https://url of the object' }} resources={[]} position={[0, 0, 0]} type="OBJ" ref={objectRef} onError={(e) => { console.log("3D obj error", e) }} visible={fileType == 'object'} />