ReactVision / viro

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

GLB Model Not Displaying on Screen #240

Open koolll opened 12 months ago

koolll commented 12 months ago

Environment

Please provide the following information about your environment:

  1. Development OS: Mac
  2. Device OS & Version: Android 11
  3. Version: ViroReact version(2.23.0) and React Native version (0.70.6)
  4. Device(s): Samsung galaxy a31

Description

I have created a sample GLB model, but it does not show anything model on the screen. Can anyone give some guidance on how to solve this problem? This is the GLB download model link. https://www.dropbox.com/scl/fi/au1o5cjr7iq8dwefkz25j/model.glb?rlkey=rfhgmjgb25i2dbhe60p4k720y&dl=1 Thanks

Reproducible Demo

Sample code `

  <Viro3DObject source={require('../../../viroRes/test/model1.glb')} type="GLB" scale={[1, 1, 1]} position={[0, 0, -1]} onError={onError} />
</ViroARScene>`