GLTF multi-animation

Hello,

I’ve successfully converted a frame animated mesh into a GLTF file. Frames are :
The frames are

idle = 0 to 10

walk = 17 to 41

etc.

I’ve tried model.activeAnimations.addAll with

model.readyToRender.addEventListener( function( model) {

var startTime = Cesium.JulianDate.now();

droneModel.activeAnimations.addAll({

“speedup” : 10,

“loop” : Cesium.ModelAnimationLoop.REPEAT,

“startTime” : startTime,

“stopTime” : Cesium.JulianDate.addSeconds(startTime, 50.0, new Cesium.JulianDate()),

});

to try to go trough the animations but it’s not working. Any idea?

Dom

Hi Dom,

Can you share the original COLLADA and converted glTF models?

Have you tried the example code in the 3D model Sandcastle example?

Patrick

Hi Patrick,
I used this model found on http://www.turbosquid.com/FullPreview/Index.cfm?ID=543278&stgURLFragment=3d-models/free-fat-terrorist-3d-model/ , I attached both DAE and GLTF files with texture.

I converted from DAE to glTF using the cesium tool : http://cesiumjs.org/convertmodel.html

I supposed the difference with cesium sample is that the default animation is still; and I need to jump to futher frames. The time - frame relation is unclear to me…

best regards

Dom

animatedModel.zip (1.52 MB)

Hi Dom,

I don’t see a library_animations in the original .dae so I don’t think the model includes animations.

As for controlling model animations using the Cesium API, check out model.activeAnimations.add.

Patrick