glTF not animated

1. A concise explanation of the problem you’re experiencing.

After upgrade Cesium version from 1.38 to 1.57, my glTF2 model became not animated. (I’ve set Viewer.shouldAnimate to true when constructing viewer)

The model was created in Blender, the blender file and exported glTF files are contained in attachment.

2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.

viewer = new Cesium.Viewer(‘cesiumContainer’, {

infoBox : false,

selectionIndicator : false,

shadows : true,

shouldAnimate : true

});

var position = Cesium.Cartesian3.fromDegrees(-123.0744619, 44.0503706, 10);

var hpr = new Cesium.HeadingPitchRoll(0, 0, 0);

var orientation = Cesium.Transforms.headingPitchRollQuaternion(position, hpr);

model = viewer.entities.add({

name : ‘Model’,

position : position,

orientation : orientation,

model : {

// uri : ‘static/model/Cesium_Air.glb’,

uri : ‘static/model/wind_turbine.glb’,

minimumPixelSize : 128,

maximumScale : 20000,

// runAnimations: true,

// clampAnimations: true

}

});

viewer.trackedEntity = model;

4. The Cesium version you’re using, your operating system and browser.

Cesium 1.57 in Windows 10, Google Chrome 74.0.3729.157

turbine_model.zip (151 KB)

I think this is a bug, I opened an issue here: https://github.com/AnalyticalGraphicsInc/cesium/issues/7863

Although I wasn’t able to get it working even with 1.38. Here’s a hosted version of your code with version 1.38: https://cesium-gltf-test.glitch.me/ and you can see the code here: https://glitch.com/edit/#!/cesium-gltf-test?path=views/index.html:24:5

Hello Omar, thanks for your reply.
After checking my model again, I found it is the old version model which animates in Cesium v1.38 but doesn’t work in v1.57.

The model in the previous attachment is the newer exported and it doesn’t animate in both Cesium version, just like you said.

Older version of model animated in Cesium v1.38:

I’ve attached the older version of the model (with blender file), hope they will provide some cue by comparing between two model versions.

Thanks again!

Omar Shehata於 2019年5月22日星期三 UTC+8下午9時36分32秒寫道:

wind_turbine_old.zip (142 KB)

uploaded GIF screenshot is not animated in my previous comment, post it again here.

Omar Shehata於 2019年5月22日星期三 UTC+8下午9時36分32秒寫道:

The new version of the model seems to work fine in the latest version of Cesium. Here’s a demo app using it:

https://sore-trouble.glitch.me/

You can see the source here:

https://glitch.com/edit/#!/sore-trouble?path=views/index.html:39:27

Are you able to see this working for you as well?

I’m able to see it animating now.
I think there’re some problems in my first-uploaded model…

Thank you for replying and testing for me.

Omar Shehata於 2019年6月4日星期二 UTC+8上午4時29分28秒寫道: