--
You received this message because you are subscribed to a topic in the Google Groups "cesium-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cesium-dev/RQLtbF4Wdac/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cesium-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and all its topics, send an email to cesium-dev+...@googlegroups.com.
https://cesiumjs.org/convertmodel.html
I wrote a few lines of code to pick the kml models info and convert to czml packets.
This works (I think) however, there are some issues like:
the kml scale is in x,y,z direction, but czml is just one number, which one to pick?
the orientation in czml uses UnitQuaternion, how to get this from the kml tilt,roll,heading?
Is anyone still interested in such conversion? If so, are there any simple example kml files around with some geometry models in it for testing?
Re: czml scale, I was extracting the kml model scale [x,y,z] and using this to set
the czml model scale value, which takes only 1 number. But I can see that
there is a scaling factor of Cartesian3. It is not clear to me where it should be used.
Also not sure which one the czml model will use.
I did eventually see the fromHeadingPitchRoll function, which I use in my code now.
I have a test app that converts kml models from a kml document, to czml models at:
https://github.com/workingDog/kml2czml
Although not really needed by Cesium users, I also have a KmlToGeojson converter at: