UnityGLTF icon indicating copy to clipboard operation
UnityGLTF copied to clipboard

Export Unity animation clips and skeleton to GLTF

Open owilliamailliwo opened this issue 5 years ago • 6 comments

Add exporting Unity animation clips and skeleton to GLTF. We can export GLTF file with animation clips and skeleton throght "GLTF -> Export ***" menu now.

owilliamailliwo avatar Feb 16 '20 10:02 owilliamailliwo

@owilliamailliwo couple questions to judge this vs my PR and which pieces to take from which:

  • does this support multiple skeletons
  • does this support multiple clips from an animator
  • does this support actual keyframes or just baked animation (mine is currently "baked but optimized")
  • does this have a timeline recorder clip (see unity usd for why this would be great) (mine doesn't yet)
  • does this work with Google SceneViewer (I had to fix some things in gltf dll to make that work)

hybridherbst avatar Feb 29 '20 14:02 hybridherbst

Hi @soraryu , does this support multiple skeletons YES does this support multiple clips from an animator
YES does this support actual keyframes or just baked animation (mine is currently "baked but optimized") It supports keyframes animation. does this have a timeline recorder clip (see unity usd for why this would be great) (mine doesn't yet) It will soon support this feature. does this work with Google SceneViewer (I had to fix some things in gltf dll to make that work)
I haven`t tested it with Google SceneViewer, but it works fine with babylon.js. It is fully compatible with the GLTF 2.0 standard.

I will create a new pull request recently, which will support the compression of animation data and geometry properties. Because we have multiple teams are developing game projects base on this plugin, we will quickly improve the functionality of the plugin and share them out.

owilliamailliwo avatar Feb 29 '20 15:02 owilliamailliwo

That's great to hear! I'll look into any differences that there may be between mine and yours and notice here.

About compatibility: note that the rest of Khronos' Unity code (currently) itself isn't fully spec compatible in some places unfortunately, and there are big differences in gltf support between babylon, three, filament, scene viewer try etc. Please try in as many as you can.

hybridherbst avatar Feb 29 '20 16:02 hybridherbst

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Apr 12 '20 09:04 CLAassistant

This will not work for runtime export 'cause AnimationUtility was called, and disregard legacy Animation system.

tufeixp avatar Nov 04 '20 01:11 tufeixp

@tufeixp that's correct; as outlined above a good improvement here would be the ability to record via a timeline clip (which would also work at runtime). Similar to how Unity-USD does that.

hybridherbst avatar Nov 04 '20 11:11 hybridherbst