# Whats the best practise for moving a 3d model around the globe.

**URL:** <https://community.cesium.com/t/whats-the-best-practise-for-moving-a-3d-model-around-the-globe/1618>\
**Category:** CesiumJS\
**Created:** [October 26, 2014, 1:21pm UTC](https://community.cesium.com/t/whats-the-best-practise-for-moving-a-3d-model-around-the-globe/1618 "2014-10-26T13:21:02Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Poul\_Sorensen](https://avatars.discourse-cdn.com/v4/letter/p/fbc32d/32.png) [@Poul\_Sorensen](https://community.cesium.com/u/Poul_Sorensen)\
**Post date:** [October 26, 2014, 1:21pm UTC](https://community.cesium.com/t/whats-the-best-practise-for-moving-a-3d-model-around-the-globe/1618/1 "2014-10-26T13:21:02Z")

</div>

I saw the sandbox 3d model example of a plane.

We collect data with small planes and I want to visualize what we are doing with cesium. Though I am new to cesium, i properly can figure it out if I get a few good pointers on where to start and best practise.

I have internal storage of all our images taken in a log file with GPS positions and airplain speed/time of capturing the photo ect. Also roll,pitch,yaw ect.

What would be the best way to accomplishing the following:

Show the hole flight as a over time animation using the cesium time bar thing in the button. (Also what is the names of these controls i want to search for).

Then i want to move the airplane model according to flight log and every time a image is captured I would like to show its footprint on the ground(i have the geojson polygon of image ground footprint).

My question is, what format would I best/easiest create from my data to visualize this in cesium.

Better yet, if there exists a sample or something I can just modify that would be awesome. If not, i can write up a blog post on how I did it when I am done.

---

<div class="post-metadata">

**Author:** ![patrick](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/patrick/32/2045_2.png) [@patrick](https://community.cesium.com/u/patrick)\
**Post date:** [October 27, 2014, 11:22am UTC](https://community.cesium.com/t/whats-the-best-practise-for-moving-a-3d-model-around-the-globe/1618/2 "2014-10-27T11:22:01Z")

</div>

Hi Poul,

Check out [CZML](https://github.com/AnalyticalGraphicsInc/cesium/wiki/CZML-Guide). It is a JSON schema for data-driven time-dynamic visualization just as you described. There are a few examples [here](https://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=CZML.html&label=Showcases). None of these show a 3D model, but Matt will know if we have any of those examples handy.

We welcome a blog post on this. Let us know what help you need along the way and we’ll also help spread the word about your post when it is ready.

Patrick

---

<div class="post-metadata">

**Author:** ![Kevin\_Ten\_Eyck](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/kevin_ten_eyck/32/27541_2.png) [@Kevin\_Ten\_Eyck](https://community.cesium.com/u/Kevin_Ten_Eyck)\
**Post date:** [October 27, 2014, 5:51pm UTC](https://community.cesium.com/t/whats-the-best-practise-for-moving-a-3d-model-around-the-globe/1618/3 "2014-10-27T17:51:02Z")

</div>

Here is an example I wrote using the czml-writer.

[10.26.14.czml](https://community.cesium.com/uploads/short-url/mXdxFUWGzgdrgb6ZbCni9vw2EXc.czml) (5.07 MB)

---

<div class="post-metadata">

**Author:** ![Brian\_Jamieson](https://avatars.discourse-cdn.com/v4/letter/b/6bbea6/32.png) [@Brian\_Jamieson](https://community.cesium.com/u/Brian_Jamieson)\
**Post date:** [October 29, 2014, 6:15pm UTC](https://community.cesium.com/t/whats-the-best-practise-for-moving-a-3d-model-around-the-globe/1618/4 "2014-10-29T18:15:47Z")

</div>

Hi Kevin,

Sorry to hijack this thread, but could you help me (and more than a few others) by showing how you have calculated your orientations ?

I have failed miserably trying to get my boats to do precisely what you have gotten your car doing, and I’m running out of hair to pull out of my head !

Thanks if you can help, and understand if you don’t have the time…

---

<div class="post-metadata">

**Author:** ![Kevin\_Ten\_Eyck](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/kevin_ten_eyck/32/27541_2.png) [@Kevin\_Ten\_Eyck](https://community.cesium.com/u/Kevin_Ten_Eyck)\
**Post date:** [October 29, 2014, 8:48pm UTC](https://community.cesium.com/t/whats-the-best-practise-for-moving-a-3d-model-around-the-globe/1618/5 "2014-10-29T20:48:27Z")

</div>

I let[STK (Systems Tool Kit)](http://www.agi.com/products/stk/) do all the work for me. I have automated STK so that I read my [time, bearing, pitch, roll] data into STK and then use the power of STK to output the quaternions in the Earth Fixed frame. Once I have the quaternions I then use the czml-writer to write the czml file I have in my first post. I’m already a STK user so I found this to be the easiest way to convert my data into the quaternion format that cesium needs without having to do the math myself. I don’t know if my solution will help you much if you’re not an STK user but this is how I’m generating my model orientation.

---

<div class="post-metadata">

**Author:** ![Poul\_Sorensen](https://avatars.discourse-cdn.com/v4/letter/p/fbc32d/32.png) [@Poul\_Sorensen](https://community.cesium.com/u/Poul_Sorensen)\
**Post date:** [November 2, 2014, 9:09pm UTC](https://community.cesium.com/t/whats-the-best-practise-for-moving-a-3d-model-around-the-globe/1618/6 "2014-11-02T21:09:01Z")

</div>

Thanks Patrick. I will take me some weeks before I will have a blob post ready. Right now its a little after work project.

I will see if I can figure it out 🙂

---

<div class="post-metadata">

**Author:** ![Azar](https://avatars.discourse-cdn.com/v4/letter/a/a3d4f5/32.png) [@Azar](https://community.cesium.com/u/Azar)\
**Post date:** [September 16, 2015, 9:39pm UTC](https://community.cesium.com/t/whats-the-best-practise-for-moving-a-3d-model-around-the-globe/1618/7 "2015-09-16T21:39:14Z")

</div>

I try to use the same CZML file as Kevin did, but instead of those data for "gltf" I have an address of the gltf file of one of those already existed 3D models in sandcastel, but it doesn't work. Do you know what is the problem?

Thanks,
