viromedia / viro

ViroReact: AR and VR using React Native
MIT License
2.31k stars 483 forks source link

Got a black screen with Viro3DSceneNavigator. #305

Open Charlynux opened 6 years ago

Charlynux commented 6 years ago

Hello,

I work on a React Native app and we would like to integrate some 3D views.

My first scenes with Text, 360Image or 3DObject works well with a ViroVRSceneNavigator. But I would like to use Viro3DSceneNavigator instead.

When I switch the scene navigator, I just got a black screen.

Looking at the Android logs I found this :

05-29 11:44:59.435  3505  5055 I Viro    : Failed to make complete resolve framebuffer object 8cd6
05-29 11:44:59.435  3505  5055 I Viro    :    Incomplete attachment
05-29 11:44:59.435  3505  5055 I Viro    : Failed to create color texture target: texture creation failed
05-29 11:44:59.438  3505  5055 I Viro    : Failed to make complete resolve framebuffer object 8cd6
05-29 11:44:59.438  3505  5055 I Viro    :    Incomplete attachment
05-29 11:44:59.438  3505  5055 I Viro    : Failed to create color texture target: texture creation failed
05-29 11:44:59.440  3505  5055 I Viro    : Failed to make complete resolve framebuffer object 8cd6
05-29 11:44:59.441  3505  5055 I Viro    :    Incomplete attachment
05-29 11:44:59.441  3505  5055 I Viro    : Failed to create color texture target: texture creation failed
05-29 11:44:59.446  3505  5055 I Viro    : Failed to make complete resolve framebuffer object 8cd6
05-29 11:44:59.446  3505  5055 I Viro    :    Incomplete attachment
05-29 11:44:59.446  3505  5055 I Viro    : Failed to create color texture target: texture creation failed
05-29 11:44:59.447  3505  5055 I Viro    : Failed to make complete resolve framebuffer object 8cd6
05-29 11:44:59.447  3505  5055 I Viro    :    Incomplete attachment
05-29 11:44:59.447  3505  5055 I Viro    : Failed to create color texture target: texture creation failed
05-29 11:44:59.448  3505  5055 I Viro    : Failed to make complete resolve framebuffer object 8cd6
05-29 11:44:59.448  3505  5055 I Viro    :    Incomplete attachment
05-29 11:44:59.448  3505  5055 I Viro    : Failed to create color texture target: texture creation failed
05-29 11:44:59.458  3505  5055 E         : mali gles error info : 95, error: 7
05-29 11:44:59.629  3505  5055 E         : mali gles error info : 95, error: 7
05-29 11:44:59.770  3505  5055 E         : mali gles error info : 95, error: 7
05-29 11:44:59.917  3505  5055 I Viro    : No gamma correction enabled in tone-mapper

At the moment, I work with Android, but will need iOS as well.

My dependencies versions :

react : 16.3.1
react-native: 0.55.4
react-viro : 2.7.0

I found an issue which the same warnings in ViroCore. https://github.com/viromedia/virocore/issues/9 But can't figure if there some relation between the two problems.

Is there a way to find more informations for debugging ?

Charlynux commented 6 years ago

I build the iOS version without errors, 3DObject is visible and draggable. Without any change in JS code, just configuring iOS project.

Any known issue for Viro3DSceneNavigator on Android ?

dam00n commented 6 years ago

Hi @Charlynux, we do not have any known issues but we will look into this. Thanks for reporting. Just to clarify, the issue you are seeing is only for Viro3DSceneNavigator on Android? Also, can you tell us what device you are using when you see this error?

Charlynux commented 6 years ago

You're right the issue is only for Viro3DSceneNavigator on Android.

I tested it on two devices :

If you need more informations, just ask.

radvani commented 6 years ago

Hi @Charlynux, thanks for helping us resolve this bug. When you start the app, Viro should print out the GPU type your device is using. Can you let me know what it says? It should look something like this:

GPU vendor [Qualcomm], renderer [Adreno (TM) 530]

Raj

Charlynux commented 6 years ago

Hello,

Here is what I get :

Wiko U Feel Lite 06-06 09:30:37.682 1063 1121 I Viro : GPU vendor [ARM], renderer [Mali-T720]

Huawei Honor 7 06-06 09:32:32.031 7966 8023 I Viro : GPU vendor [ARM], renderer [Mali-T624]

Hope it can help you.

rgouzal commented 4 years ago

@dam00n same here I see only black screen instead of camera view any solution?

OS: Android 10 Device: Samsung M31 React: 16.3.1 React Native: 0.63.3 React Viro: 2.17.4

emirhanylmzz commented 3 years ago

Same problem with Samsung Galaxy M21 ! Is there any solution?? @dam00n @radvani