google-ar / sceneform-android-sdk

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

Support animations for glTF/GLB format #585

Open dpproduction opened 5 years ago

dpproduction commented 5 years ago

I create ModelRenderable with glb model file that contains a few skeleton animations. But animationDataCount is zero. Do you plan to support animations for glTF/GLB formats?

tpsiaki commented 5 years ago

Right now we only have support for animations via FBX imported to SFB and glTF/GLB only support static assets (whether loaded at runtime or imported into an sfb). At this point we don't have any new animation formats to announce, but I will mark this as a feature request to track this. Thanks!

dpproduction commented 5 years ago

Thanks! It will be a very useful feature!

bestog commented 5 years ago

Please implement the Animations from glb/gltf! 😎

MattSich commented 5 years ago

GLTF animations would be very helpful!

jfaust commented 5 years ago

@tpsiaki are there any workarounds possible? E.g. Filament has a gltf loader that supports animation, is it possible to use it directly? Possibly via a custom version of Filament (as in #329). I'd also be interested in adding support to the gltf -> sfa/sfb conversion tool, but I haven't found source for it.

trikolasu commented 4 years ago

@jfaust Do you found a way to play animated gltf models?

jfaust commented 4 years ago

@trikolasu Not yet.

arifullahjan commented 4 years ago

How is the model-viewer doing that? Go to https://www.google.com/search?q=panda on your android Just give us that :D

sergeevsnaappy commented 4 years ago

Please implement the Animations from glb/gltf. Or create an easy and stable online converter without need in Android Studio. Its not a job for developers to convert hundreds of objects, and marketing people just cannot use the existing converter properly.

vortice3D commented 4 years ago

Hi there:

Truly hoping this feature is added to the next Android SDK release, as ARCore web-component already uses it from several previous versions (I suppose that using a port of the aforementioned Filament existing functionality).

vortice3D commented 4 years ago

Hi there, kind people:

Any advice about the way to implement/hack within Sceneform, by ourselves, the already available Filament Engine Animated GLTF/GLB functionality ?

BTW, it's me or seems very strange not being to be possible to use this (basic) functionality in ARCore/Sceneform at the moment, considering that:

Anyway, the lack of this fundamental feature makes me think that perhaps Google prefers (as by example Vuforia does) that people use a third party game engine (Unity and Unreal) in order to tackle AR projects, instead of the (good) native-way. Do not misunderstand me, I have not problem with that focus when in fact a "game" is being developed, but I think that's a complete (and bloating) overkill in many other scenarios.

Thanks for your time.

Best regards.

vortice3D commented 4 years ago

Hi again dear folks:

After writing the previous post, I've just seen in the Filament's GitHub repository that at the moment (Filament 1.3.2) already implemets GLTF/GLB animations by means of gltfio library.

Visiting the Sceneform SDK for Android GitHub repository, the revision history shows that in the last version (v1.12.0), such1.3.2 version of Filament has been added.

From that I think that the only missing step is to incorporate Sceneform v1.12.0 into the plugin for Android Studio. Am I missing something?

Best regards.

GLiccardo commented 4 years ago

+1 I suggest to focus to implement this feature to simplify the developer work...

vortice3D commented 4 years ago

Hi everybody:

As a result of the fix in implementation of GLTF/GLB on Filament, I think now there are not excuses for finally incorporate GLTF/GLB animations to the native ARCore/Sceneform functionality.

Best regards.

dpproduction commented 4 years ago

@tpsiaki Still not working on Scenefrom 1.14 ... c'mon guys :(

vortice3D commented 4 years ago

So weird it is still not working in 1.14... maybe for 1.15?

shiaro007-joker commented 4 years ago

Hi I'm also in requirement of this feature ASAP. I'm trying to load animated 3d objects at runtime. But animation is only supported in .obj which in turn can't be loaded at runtime as it needs to be converted into sfb. On the other hand runtime supportive gltf/glb formats can't have animation. Such a vicious circle. Please guys implement this ASAP!

vortice3D commented 4 years ago

1.15 still not implement animated GLTF/GLB functionality.

Supporting all the work on the oldie FBX format is a real bottleneck in each serious pipeline. Very disappointing for the CG artist!

C'mon guys!

laddhadhiraj commented 4 years ago

How to load animation 3d object in-app by HTTP URL? Is AR core support animated object in runtime by using URL assets of 3d object if yes, then which format I should use?

Thanks

vortice3D commented 4 years ago

Finalliy 1.16 release support animated GLTF/GLB by means of gltfio library and open access to Filament APIs.

Hallelujah!!