google-ar / sceneform-android-sdk

Sceneform SDK for Android
https://developers.google.com/sceneform/develop/
Apache License 2.0
1.23k stars 604 forks source link

Sceneform still can't load embedded GLTFs in 1.16? #1048

Open John-DeCorato-HZ opened 4 years ago

John-DeCorato-HZ commented 4 years ago

Kind of surprising since it seems you've switched over to using the Filament gltf loader, and I was getting it to work when writing a filament application?

The model I am testing with is https://github.com/KhronosGroup/glTF-Sample-Models/raw/master/2.0/DamagedHelmet/glTF-Embedded/DamagedHelmet.gltf

Is there something I am missing in setting up the ModelBuilder? I was following what was being done in other places in the code base.

vortice3D commented 4 years ago

Hi John:

As stated in #1045, it seems to me that GLTF doesn't work at all both as embedded or remote-linked.

Said that, you need only to use its binary (GLB) counterpart. It works flawless with or without Draco compression.

Best regards.

dhaval85 commented 4 years ago

@vortice3D Are you using blender? I am trying to use canonical_face_mesh.fbx with blender and when I export them as GBL, they doesn't work in ARCore.

vortice3D commented 4 years ago

Hi @dhaval85:

This issue was solved with a new implementation of the gltfio loader. From then, it works flawless with Blender exported assets.

Please, download again the SDK and try again.

Best regards,

dhaval85 commented 4 years ago

@vortice3D Thank you for the reply. I will try the Android SDK 1.16 and see if it works. I am right now using 1.15. Take care and Stay Safe.

dhaval85 commented 4 years ago

@vortice3D Wow. It looks like 1.16 cannot be import using gradle. Do you know how to use this new 1.16 SDK?

dhaval85 commented 4 years ago

@vortice3D I have downloaded the 1.16 SDK zip and imported it as a module to my android project. And it's not able to find AugmentedFaceNode. Do you have any steps to import 1.16 SDK correctly?

vortice3D commented 4 years ago

Hi @dhaval85 :

About the AugmentedFaces functionality, I haven't worked with it for any development.

Said that, maybe you can find some info hero.

Best regards.

dhaval85 commented 4 years ago

@vorice3D

Well, at least with 1.15 ARCore and Sceneform I was able to plot some 3D objects on face by embedding these 3D resources as FBX file in the android application. But I want them to be loaded from a remote location using GLB file. Sceneform library cannot decode the embedded textures from LGTF file. And somehow while loading blender exported GLB files from remote location in Sceneform library it shows some error about missing attributes.

Someone in one of the articles said that GLB file may have some textures which are not bind to any mesh and that could be a problem. I cleaned up all the unused textures but still the same issue. So from your comment I realized that this issue is resolved in 1.16 sceneform library. So I am trying to import it. But again no luck as some classes are missing. Google doesn't have any document on how to use the sceneform 1.16 SDK after it is open sourced. No packages in maven repo too so importing it using gradle is not simple.