-
Notifications
You must be signed in to change notification settings - Fork 51
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
Unhandled Exception: Bad state: Cannot use origin without a scheme: (any gltf files) #93
Comments
Try to open your file in this online 3d viewer: If it gives you an error then problem in models |
I used the online 3d viewer and the .gltf and .bin files work just fine. I checked the gltf file and it references the .bin file under"uri" in the same origin as the gltf file. I'm currently storing the gltf file and its external resources under the "assets" directory and modified my pubspec.yaml to include them. |
I got the same problem on GBL files: Loading the GLB from asset folder i cant view on Android Build: Loading like this: E/flutter ( 2836): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Bad state: Cannot use origin without a scheme: assets/3d/refix_spray_ORBIT_cam.glb ModelViewerState._initProxy. package:model_viewer_plus/src/model_viewer_plus_mobile.dart:289 |
same issue here |
Also having that problem... |
Hey, the src input doesn't work for gltf files. I've tried numerous times and it keeps throwing this error: Unhandled Exception: Bad state: Cannot use origin without a scheme: assets/BusterDrone.gltf
The assets folder contains the gltf file and the .bin file. I've tried using .glb file under the same directory: assets/DamagedHelmet.glb, and that works just fine.
Please help.
The text was updated successfully, but these errors were encountered: