CariusLars / ar_flutter_plugin

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

Unable to render the .gltf file in IOS but worked in android #128

Closed Hpaneru closed 1 year ago

Hpaneru commented 2 years ago

Hi! I have tried multiple types of .gltf files to render. Some of them rendered but some of them are not render and doesn't shows any error!

The animation files from this link https://github.com/KhronosGroup/glTF-Sample-Models/tree/master/2.0 were successfully rendered, but i am trying to render other than the files from this url they are not rendered!

I download the animation file from the above link and load from the local file by trying to render in type: NodeType.localGLTF2.

The error is like below:- Screen Shot 2022-08-01 at 20 25 04

The file which I want to render is;- Test_Animations.zip

I don't find and difference between my file and the animation files from the above github link!

P.S I am using node type as:- type: NodeType.localGLTF2,

@CariusLars Could you plz look into it!

SebastianAT commented 2 years ago

I also faced a similar issue when loading files from the web directly from github. In order to solve i had to add "?raw=true" to the end of the github link like this: https://github.com/KhronosGroup/glTF-Sample-Models/blob/master/2.0/Duck/glTF-Binary/Duck.glb?raw=true