Cesium czml change orientation of 3d model (gltf/glb) along with position in time

空扰寡人 提交于 2019-12-23 13:01:20

问题


I have implemented a 3d model (cesium air) aircraft to move along a path. Its position is being changed based on time and the detailed data is available in the czml file under position attribute. However, I am not able to change the orientation of the aircraft along with path. The aircraft flies through the path but its heading , pitch and roll are constant. It does not pitch up with increase in height etc. How to implement the attitude changes using orientation attribute in the czml file or any other solution for the said problem?


回答1:


You need to assign a VelocityOrientationProperty to each entity (aircraft) that needs to orient itself along the path. Unfortunately there's no CZML indicator for this, but you can assign it in client-side code after loading the CZML.

The Sandcastle Interpolation Demo shows VelocityOrientationProperty applied to a moving aircraft. Be sure to select a non-linear interpolation so it looks cool.



来源:https://stackoverflow.com/questions/37721409/cesium-czml-change-orientation-of-3d-model-gltf-glb-along-with-position-in-tim

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!