viromedia / viro

ViroReact: AR and VR using React Native
MIT License
2.29k stars 481 forks source link

Black ViroARScene camera background after sceneNavigator.pop() #639

Open pablo-tx opened 5 years ago

pablo-tx commented 5 years ago

Environment

  1. Development OS: Linux
  2. Device OS & Version: Android 9?
  3. Version: ViroReact 2.14.0 and React Native 0.59.3
  4. Device(s): Xiaomi Pocophone F1

Description

I'm trying to load a ViroARScene from another ViroARScene using this.props.sceneNavigator.push({scene:ThreeSixtyScene});

Everything works good till I go back to the main scene using this.props.sceneNavigator.pop() and the AR camera background doesn't work anymore, showing a black screen. The items previously placed in the scene do work correctly.

The second scene I'm loading only contains a Viro360Image and a button to go back:

<ViroARScene style={styles.container}>
            <Viro360Image source={backgroundImage}/>
            <ViroNode>
                <ViroImage
                    scale={[1, 1, 1]}
                    position={[0, -3.5, 0]}
                    rotation={[-90, 0, 0]}
                    source={backImage}
                    onClick={this._onBackClick}/>
            </ViroNode>
</ViroARScene>
Woltman commented 5 years ago

I have the same problem. Is there a solution for this problem? it is working properly on iOS ..

vipulz006 commented 3 years ago

Hi @pablo-tx and @Woltman, I am also facing exact same issue. Did you manage to resolve this issue? I would really appreciate your help.

rgouzal commented 3 years ago

@vipulz006 same here

tnghia944 commented 3 years ago

.