ReactVision / viro

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

Crash using ViroVRSceneNavigator with Viro360Image. #66

Open vasilycrespo opened 2 years ago

vasilycrespo commented 2 years ago
  1. Development OS: Mac 12.1
  2. Device OS & Version: iOS 15.1
  3. Version: starter-kit
  4. Device(s): iPhone SE

Description

Hello, i've been using the legacy viro react, and manage my way to make it work on android and ios, with last react-native version.

However, after updating iOS to any os higher than 14, there is an issue with the calibration/gyroscope, the screen start jumping everywhere, please look at the video at this post:

https://github.com/viromedia/viro/issues/927

So, after some research it seem that viro media (legacy) is using a deprecated version of cardboard for iOS. It seems there is a new cardboard SDK:

https://developers.google.com/cardboard/develop/ios/quickstart

I was able to run the sample xcode project there and verified that it seems to work as expected on iOS.

Just wanted to know if ViroCommunity version is using the lastest cardboard SDK, as i am unable to test with the starter kit due to a potential issue:

https://github.com/ViroCommunity/viro/issues/18

Reproducible Demo

To reproduce, install the started kit and replace the AR Scene with ViroVRSceneNavigator

IMG_0573

<ViroVRSceneNavigator
  initialScene={{scene: VrImage}}
/>

Code for the VrImage Component:

 const VrImage = () => {
    return (
      <ViroScene>
        <Viro360Image source={{uri: '...your_360vr_image_experience....'}} />
      </ViroScene>
    );
}

Thanks, a lot.

doranteseduardo commented 2 years ago

Unfortunately we (ViroCommunity) started working on a version of Viro that has GVR stripped out, that means VR isn't working on iOS.

We want to get it back but we lack on hands to bring back the code.

If you would like to help you're welcome!