ReactVision / viro

ViroReact: The AR and VR library for React Native πŸ“³πŸ’™πŸ’›πŸ€πŸ’š

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GLB Model Not Displaying on Screen

koolll opened this issue Β· comments

commented

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
<ViroARScene onTrackingUpdated={onTrackingUpdated}> <ViroAmbientLight color="#ffffff" intensity={200} /> <Viro3DObject source={require('../../../viroRes/test/model1.glb')} type="GLB" scale={[1, 1, 1]} position={[0, 0, -1]} onError={onError} /> </ViroARScene>