CesiumGS / CesiumGS/cesium

Tracking Entity with Relative Height Reference Jitters

Open
#7,012 0 comments 0 reactions 0 assignees View on GitHub
category - camera type - bug
Dominant language
JavaScript
Stars
15.7k
Forks
3.9k
Avg merge
4d 6h
Merged PRs (30d)
34

Description

This [Sandcastle](https://cesiumjs.org/Cesium/Apps/Sandcastle/index.html#c=zVh7T9tIEP8qK/7BubpOwutKgOpS4FpOgUQkbXUqFdrYk2TVtdfaXRPoie9+sw87diBVkU66IoTXuzOzM795mjsqyR2DJUhyQjJYklNQrEijT3Yv2I7t66nINGUZyO2Q/HOTEfxh2Uy8E/c9MqNcQUja7TOm6JQDuXAnZMmSOWhHrYBDrJnILrKExVQL+QxjRYTCPZXnXoiCJ/2MpVRDj2hZWD5ynlk+ag+QT91kj62jm+wma7f9GWfzhWbZnEypgoSgbFVk7VTgIheKeS6HQKRiyCCaczGFCCz/oGQ/sbc2ZSeQ6wXRoCyFEkQvcKHIFPCZ4BvgoZQIHEnQxDwHKqNnL7OSJiioP0dqpSeerXHrGLSVKWmWiJRkRTpFrylAs2ZCkhgtYUpDpokEVXCt8C7vzUuqF5ECfW1ZryznGBmD3VZN+FQUWaKImBFRoGCWFtzCSjRLAfXGUFGaSo1qebl/FZzR7Ay9Es2kSM0iMEFkFzud7n5IdvAXH92DlrnKyRD5syJokowBzUhUYO8Jye5BJ6xH5Yo4aJWaX9JvGDqFhDKOmSLUIZUgl0R4jP4r4GMu4m+RvWGCB6iKXZv9DOUePSEUeUUn8k1kcSElYv8zEu1fdMUcVjCcVnvRYDgc3Y4nw9ERxvhAIFjeHMiSNUnoIc1yzmz2djv1QEE9OGYs0aLuSefiSkpJFX0XIp2IEnZjZwnve4xSiYATWgZezGSM8iTJqcb4zjDRMQ3Qsw8mDRZgUsbE3qzIXDbHIs0LDafIxw3jnzYpAwQnJKhXiIITVqhWWVpMkORS5CD1Q7MqjWmac0hGPnNHnshCbDhNHgSGnSFf5wgfxycmiMzq1QnZ26/uKO8xV9NMrRxhU0W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AsfjeDiT+CxTHWDua2A6TC99UTDmKNuh3CVkRfPEqaBylTEG7qLP3yADdgm2wn2P7vfdfrGUJww5gr0a2pyaZH6d/VJZi8zHXED/MbRtZT/2GBW6IXCsvT6j6fI5dQi/SVU1wmjcUf34ieaz+PbAJAzqX9sPH1K9MpKau/QKA7L8UEG/Gyor/ApwPIFOmfzVsdl6IjbfiZdB8Dcl2Q7BJqG1DsRVuHSv9wOGto/6DpbnA4auQPMBxQQN2W+x/qj0tMOHxm1spw3bcLpmOE3ZHWHJys7X2v6ybLRJzqhSezApup4abrbfHbaRvsHFhC+PwDiSnD4Zk0X07cJtRFB238fUpl3aFAcmd3quTJ3bWb/XPfwE) is modified from the "Interpolation" example. I just removed the `terrainProvider` and set the model's heightReference to `Cesium.HeightReference.RELATIVE_TO_GROUND`.

Click on "View Aircraft" and notice the camera jitters as it follows the model. This doesn't happen with no height reference.

This [came up on the forum](https://groups.google.com/d/msg/cesium-dev/vikysHw9e-8/2hPbY6WkBQAJ).

Contributor guide

Open the contributing guide

Research direction

Open the linked Sandcastle reproduction, based on the Interpolation example, and compare tracking behavior with and without the model's Cesium.HeightReference.RELATIVE_TO_GROUND setting. Confirm the camera jitter when selecting "View Aircraft" and trace the model-tracking and relative-height entry points until the camera follows smoothly without that jitter.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
computer-graphics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.