CariusLars / ar_flutter_plugin

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

Loading models #30

Closed roby0970 closed 3 years ago

roby0970 commented 3 years ago

This package helped me a lot, so first, thanks for that!

The problem? I cannot load any model except for the ones from example. Chicken from local and a duck from web. I have 0 knowledge of 3d models and how they work, but I tried to load:

after adding, nodes are registered as added but nothing shows in space, nor are there any error messages.

Using the code from example and only using my models. Also, created a folder and put the .gltf in there while adding the folder path to assets, just as it is with Chicken model.

CariusLars commented 3 years ago

Hi @roby0970 , thanks for your message! I just tried it out myself and you're right, the box model somehow doesn't work, I can't really say why without further debugging. Other models from the repo, e.g. the buggy at https://github.com/KhronosGroup/glTF-Sample-Models/tree/master/2.0/Buggy/glTF, work without problems, so it's probably some kind of format error. I suggest you just use some other model if possible :)

roby0970 commented 3 years ago

Yup, the buggy works... I need something netrual, simple, so I'm just gonna try loading models until I find a working one.

Im gonna close this issue for now then. Thanks!

CariusLars commented 3 years ago

@roby0970 there are loads of free models out there on the internet, but you can also just use blender (it's free) to create your own box or any other simple model and save it as gltf :)