Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't open 3d after click on button #33

Open
RenatBack opened this issue May 27, 2021 · 11 comments
Open

Can't open 3d after click on button #33

RenatBack opened this issue May 27, 2021 · 11 comments
Labels
bug Something isn't working

Comments

@RenatBack
Copy link

RenatBack commented May 27, 2021

Hello. I have worked app with 3d models. But few days ago i saw this after pressing button for load object:

Download failed
An error occured while loading the object

model_viewer_error

@RenatBack RenatBack added the bug Something isn't working label May 27, 2021
@ajay-k07
Copy link

ajay-k07 commented Jun 7, 2021

i too have the same problem help me if you found any solutions

@RenatBack
Copy link
Author

i too have the same problem help me if you found any solutions

Hello. I know how to fix it.

  1. You need to set or update AR settings in your project. Follow this link
    https://developers.google.com/ar/develop/java/enable-arcore#ar-required_1

  2. Check Google AR services on your device is installed/updated.

  3. Check build.gradle file in your project
    dependencies {
    classpath 'com.android.tools.build:gradle:3.6.0'
    ...
    }

  4. Check gradle\wrapper - gradle-wrapper properties
    distributionUrl=https://services.gradle.org/distributions/gradle-5.6.4-all.zip

  5. Restart you project.

I hope this helps.

@ajay-k07
Copy link

ajay-k07 commented Jun 7, 2021

i tried with your solution same problem again for me can you share your repo
or i will share mine please help me to fix https://github.com/ajailee/MyHome.git

@RenatBack
Copy link
Author

i tried with your solution same problem again for me can you share your repo
or i will share mine please help me to fix https://github.com/ajailee/MyHome.git

try to use this too

https://pub.dev/packages/arcore_flutter_plugin

@ajay-k07
Copy link

ajay-k07 commented Jun 7, 2021 via email

@ajay-k07
Copy link

ajay-k07 commented Jun 7, 2021 via email

@RenatBack
Copy link
Author

body: ModelViewer(
src: 'https://modelviewer.dev/shared-assets/models/Astronaut.glb',
alt: "A 3D model of an astronaut",
ar: true,
autoRotate: true,
cameraControls: true,
),

    1. change src        
    src: 'assets/MyModel.glb',
    
    2. add assets/MyModel.glb to pubspec.yaml like picture
    
    assets:
      - assets/MyModel.glb
      
   3. Save and restart   

@ajay-k07
Copy link

ajay-k07 commented Jun 7, 2021 via email

@RenatBack
Copy link
Author

try to add this to pubspec.yaml

webview_flutter: ^0.3.24

@ajay-k07
Copy link

ajay-k07 commented Jun 7, 2021 via email

@ajay-k07
Copy link

ajay-k07 commented Jun 7, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants