Animations missing from SkinnedMesh after Export

Hey!
I’m using it in inside an external r3f project. I’m only exporting to gltf/glb via needle

by user 776506054711836722

Any particular reason for that? We usually recommend integrating your project for the best experience (e.g. hot reload, interactive components, all that stuff)

When you’re exporting that way the animations will be using an glTF extension called KHR_animation_pointer by default, to support complex animations, but that extension isn’t supported everywhere just yet

Of course in Needle Engine it’s supported

It’s just that the Game Logic and everything is written in JS and I find r3f really convenient for setting up the scene descriptively and gaining access to the web ecosystem (e.g. animating via react-spring etc.)

by user 776506054711836722

You can still do that :slightly_smiling_face:
Recommend taking a look at our r3f sample, you can basically start with that and add your existing project in it

Oh alright I did not know that :slightly_smiling_face:

by user 776506054711836722

I will take a look at that thanks!
So do you think that’s the reason the animations are missing?
Would they also be missing if I import the glb into blender?

by user 776506054711836722

For your export problem, you can also try

  • select your object
  • use menu Assets > UnityGltf > Export selected as glb (this doesn’t add Needle-specific extensions and will not use KHR_animation_pointer by default but can be enough for simple cases)

Yes, Blender does not support KHR_animation_pointer yet, as far as I know that’s planned

You’ve just solved the problem! Animations are now being displayed in gltfViewer!! :slightly_smiling_face:

by user 776506054711836722

Thank you so much Guys! Incredible support, I will look into the needle r3f setup soon :slightly_smiling_face:
Really appreciate what you are doing with needle! :heart:

by user 776506054711836722

Great! But still, you’re really missing out on a super nice workflow with that :smile: would be great if you try the integrated r3f flow which basically allows you to nicely integrate this Unity export workflow into an existing R3F project, including interactive components

Yep I can imagine that I’m missing out big time haha
Will try it out soon :slightly_smiling_face: (just working on a loot of fronts at the same time, making a game solo :D)

by user 776506054711836722

Have a great rest of the day guys, you just made mine!
Cheers

by user 776506054711836722

Same to you :slightly_smiling_face: do you have a link to your project / game / somewhere to follow?

https://twitter.com/BrianBreiholz/status/1595110003756904448 that’s the current state :slightly_smiling_face:

by user 776506054711836722

Very nice!

Cool :slightly_smiling_face: would be nice if you could mention @NeedleTools and/or #madewithneedle, helps to spread the word!

What may be interesting to you for this kind of character-animation-heavy game is that with Needle Engine as core for the 3D part you basically get Animator capabilities - so, mixing and state logic and triggers and bools and transitions and that kind of stuff