# model size at distance does not animate smoothly

**URL:** <https://community.cesium.com/t/model-size-at-distance-does-not-animate-smoothly/5166>\
**Category:** CesiumJS\
**Created:** [February 15, 2017, 11:55am UTC](https://community.cesium.com/t/model-size-at-distance-does-not-animate-smoothly/5166 "2017-02-15T11:55:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frederic\_Brodbeck](https://avatars.discourse-cdn.com/v4/letter/f/c68b51/32.png) [@Frederic\_Brodbeck](https://community.cesium.com/u/Frederic_Brodbeck)\
**Post date:** [February 15, 2017, 11:55am UTC](https://community.cesium.com/t/model-size-at-distance-does-not-animate-smoothly/5166/1 "2017-02-15T11:55:12Z")

</div>

hi,

I am animating a model moving away from the camera, but there is a noticeable effect of the scaling of the model becoming less and less smooth the further away it moves. it's as if its dimensions snap to the nearest pixel. — example video: [https://vid.me/QRkZ](https://vid.me/QRkZ)

is there any way to fix or avoid this?

(I'm on HEAD of the 3d-tiles branch,) and this is the relevant code:

const TWEEN = require('tween.js');  
const modelEntity = viewer.entities.add({  
&nbsp;&nbsp;position: Cesium.Cartesian3.fromDegrees(/\* ... \*/),  
&nbsp;&nbsp;model: { uri: constants.modelUrl }  
});  
const startPos = modelEntity.position.\_value.clone();  
const carto = Cesium.Cartographic.fromCartesian(startPos);  
const groundPos = Cesium.Cartesian3.fromRadians(  
&nbsp;&nbsp;carto.longitude,  
&nbsp;&nbsp;carto.latitude,  
&nbsp;&nbsp;0  
);  
viewer.clock.onTick.addEventListener(  
&nbsp;&nbsp;() =\> { TWEEN.update(); }  
);  
const aniDuration = 5000;  
const tween = new TWEEN.Tween(startPos)  
&nbsp;&nbsp;.to(R.pick(['x', 'y', 'z'], groundPos), aniDuration)  
&nbsp;&nbsp;.onUpdate(function() {  
&nbsp;&nbsp;&nbsp;&nbsp;// console.log(this.x, this.y, this.z);  
&nbsp;&nbsp;&nbsp;&nbsp;modelEntity.position = this;  
&nbsp;&nbsp;})  
&nbsp;&nbsp;.start();

---

<div class="post-metadata">

**Author:** ![sean\_lilley](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/sean_lilley/32/2083_2.png) [@sean\_lilley](https://community.cesium.com/u/sean_lilley)\
**Post date:** [February 16, 2017, 3:51am UTC](https://community.cesium.com/t/model-size-at-distance-does-not-animate-smoothly/5166/2 "2017-02-16T03:51:04Z")

</div>

It’s not really possible to avoid this currently unless Cesium were to have a more involved antialising pipeline (maybe in the future with MSAA / WebGL2).
