Upgraded to 1.48 from 1.25 yesterday.
Since than having problems rendering 3d models, they show up randomly when refreshing the page several times but not moving according to the sampledPositionProperty.
Everything worked perfectly on 1.25, tried downgrading back to 1.25 and it worked again.
Am I missing a major change in one of the versions greater then 1.25 ?
This is how I'm creating the entities :
var sampledPositionProperty = new Cesium.SampledPositionProperty();
sampledPositionProperty.addSamples(times, positions);
var heads = ;
var sampledOrientationProperty = new Cesium.SampledProperty(Cesium.Quaternion);
for (var i = 0 ; i < positions.length ; i++) {
var hpRoll = new Cesium.HeadingPitchRoll(Cesium.Math.toRadians(90), Cesium.Math.toRadians(0), Cesium.Math.toRadians(180)); // (1) (Changed aswell to support 1.48 as it was not working after the upgrade)
heads.push(Cesium.Transforms.headingPitchRollQuaternion(positions[i], hpRoll));
}
sampledOrientationProperty.addSamples(times, heads);
var entity = new Cesium.Entity({
position: sampledPositionProperty,
orientation: sampledOrientationProperty,
model: {
scale: 1,
uri: '../../assets/satellite/sat_simple.glb',
minimumPixelSize: 1.5 * size
}
});
viewer.entities.add(entity);
Apart from the change above (1), nothing was changed in the code.