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)