CariusLars / ar_flutter_plugin

Flutter Plugin for AR (Augmented Reality) - Supports ARKit on iOS and ARCore on Android devices
MIT License
317 stars 228 forks source link

Only duck glb file is working #136

Open anmolguptach opened 1 year ago

anmolguptach commented 1 year ago

<img width="1728" alt="Screenshot 2022-08-28 at 3 46 14 PM" src="https://user-images.githubusercontent.com/10

Screenshot 2022-08-28 at 3 46 57 PM

2747077/187068949-4afa74c1-d72d-4d85-9ec0-bcdfa20d460c.png">

anmolguptach commented 1 year ago
Screenshot 2022-08-28 at 3 46 14 PM
SapinderSingh commented 1 year ago

Same issue, I also cannot use any other model except of this one. Same error comes

SapinderSingh commented 1 year ago

@anmolguptach did you find any solution ?????

SapinderSingh commented 1 year ago

@CariusLars image_2022-09-05_180616113

alex27riva commented 1 year ago

Add at the end of the URL String ?raw=true. Like this: https://github.com/alex27riva/3d-models/blob/main/vase.glb?raw=true

SapinderSingh commented 1 year ago

@alex27riva But other glb and gltf files are also not working

junaidlodhi22 commented 1 year ago

?raw=true

when I use this. it is working for other glb files as well

giovannicampagnolo commented 1 year ago

You have to change raw instead blob and it work

muhammadamaan008 commented 4 months ago

I have added raw instead of blob even try by adding ?raw=true at end of uri. Even try combinations of it but nothing works for me. Can anybody tell me any solution?

sudo-ulmas commented 3 months ago

I am also having same issue, did anyone manage to fix the problem?

hubo2024 commented 2 weeks ago

My files here both locally and on the network can be used. In addition to the chicken model in the example, other model files can also be used normally. If you need help, you can contact me. image 実装後のイメージ

jyothishreddy18 commented 3 days ago

Same issue, I also cannot use any other model except of this one. Same error comes

Did you find any solution ?

hubo2024 commented 2 days ago

Yes,I can

pubspec.yaml: assets:

jyothishreddy18 commented 1 day ago

Yes,I can

pubspec.yaml: assets: - assets/Point/

code: var newNode = ARNode( type: NodeType.localGLTF2, uri: "assets/Point/ClearCoatCarPaint.gltf", //uri: "https://github.com/KhronosGroup/glTF-Sample-Models/blob/main/2.0/ClearCoatCarPaint/glTF-Binary/ClearCoatCarPaint.glb?raw=true", scale: vector.Vector3(0.02, 0.02, 0.02), position: vector.Vector3( hitTestResults[0].worldTransform.getColumn(3).x, hitTestResults[0].worldTransform.getColumn(3).y, hitTestResults[0].worldTransform.getColumn(3).z, ), rotation: vector.Vector4(1.0, 0.0, 0.0, 0.0));

Nee bondha ra nee bondha...!!!