omchiii / model_viewer_plus.dart

A Flutter widget for rendering interactive 3D models in the glTF and GLB formats.
https://pub.dev/packages/model_viewer_plus
Apache License 2.0
89 stars 51 forks source link

intent error while opening in AR, the 3D model does not loads version 1.2.0 #27

Open muazbutt9 opened 2 years ago

muazbutt9 commented 2 years ago

Hey, @Foldblade the issue is solved but receiving an intent error while opening in AR, the 3D model does not loads.

Here is my 3D Model: https://ecommerce.munib.ml/storage/2022/03/chair-Beech.glb

_Originally posted by @muazbutt9 in https://github.com/omchiii/model_viewer_plus.dart/issues/26#issuecomment-1131517946_

muazbutt9 commented 2 years ago

Recieving this error.

[INFO:CONSOLE(1295)] "Attempting to present in AR with Scene Viewer...", source: http://127.0.0.1:42489/model-viewer.min.js (1295) I/flutter (24515): >>>> ModelViewer wants to load: <intent://arvr.google.com/scene-viewer/1.0?mode=ar_preferred&disable_occlusion=true&file=http%3A%2F%2F127.0.0.1%3A42489%2Fmodel#Intent;scheme=https;package=com.google.ar.core;action=android.intent.action.VIEW;S.browser_fallback_url=http%3A%2F%2F127.0.0.1%3A42489%2F%23model-viewer-no-ar-fallback;end;> V/IntentSender(24515): Sending intent Intent { act=android.intent.action.VIEW dat=https://arvr.google.com/... pkg=com.google.android.googlequicksearchbox (has extras) } W/libEGL (24515): EGLNativeWindowType 0x7630fd8950 disconnect failed D/SharedPreferencesImpl(24515): Time required to fsync /data/user/0/com.inspireui.fluxstore/shared_prefs/com.google.android.gms.measurement.prefs.xml: [<1: 1, <2: 0, <4: 3, <8: 1, <16: 0, <32: 0, <64: 0, <128: 0, <256: 0, <512: 1, <1024: 0, <2048: 0, <4096: 0, <8192: 0, <16384: 0, >=16384: 0] Lost connection to device.

Foldblade commented 2 years ago

Do you have the Google APP and Google Play Services for AR installed on your phone? If you have, please post the version and your device's model.

Also, please share your system version, any screenshots or videos may help too.

muazbutt9 commented 2 years ago

I have Google AR APP in my Huawei y9 Prime

Also, i have Infinix with Google APP both have the same result, the screen looks black at the start while opening the AR.

I think there is some problem with the server, model viewer Austronout 3D model works fine on the mobile but 3D model from the server also not working fine. the question is i have more than 8 models and all are not working fine.

https://ecommerce.munib.ml/shop ( Here you can see multiple products, try using any of 3D model and let me know if they are working fine on your side or not )

Please.

muazbutt9 commented 2 years ago

The screen blinks and the 3D model, does not display, sometimes the screen turns black, and no model displayed.

The model display when i click the recording button or capture the image, then it doesn't show again.

Plesae help @Foldblade, I have to submit the project by tomorrow. :'(

muazbutt9 commented 2 years ago

Here is the Video of how it's showing right now.

https://user-images.githubusercontent.com/29090435/169308606-8a3a0eac-97ae-48f4-a006-9f212055455d.mp4

Foldblade commented 2 years ago

Sorry, but I have no device which supports Google Play Services for AR, so I cannot test the AR mode on my devices.😢

I'm guessing it might be a device problem. Huawei Y9 2019 is listed in ARCore supported devices, but without the support of Geospatial API -- I don't know much about ARCore, and not sure if this is related to the issue. You may try to have a look at Using Scene Viewer to display interactive 3D models in AR from an Android app or browser, try to upgrade your Google Play Services for AR, or try it with emulators.