Heading, pitch and roll using CZML

Hi,

Is it possible to supply heading, pitch and roll values over CZML? The documentation seems to suggest that only Quaternions are accepted.

If that’s the case, how can I calculate the quaternion from heading, pitch and roll?

Thank you,

Fidel

Hello Fidel,

It looks like we don’t have support for heading/pitch/roll orientation from CZML. I wrote up an issue for us to look into adding it here: https://github.com/AnalyticalGraphicsInc/cesium/issues/5184

Meanwhile, you can use the function Quaternion.fromHeadingPitchRoll to compute the quaternion value.

Best,

Hannah

Thank you so much Hannah, much appreciated.

Fidel

Hello Hannah,

I’m having the same problem as Fidel but am having a problem getting the Quaternion.fromHeadingPitchRoll function into my CZML. Could I be really cheeky and ask you for some more clues or, if possible, a short example?

I only need to crack this and I’m away!

Thanks

Hugh

Hello Hugh,

This function isn’t available in CZML, but you can use that function in a script to generate the values for your czml.

Best,

Hannah