Hello Cesium community !
I am currently working in an interface between Orekit and Cesium, that I already presented briefly in this topic named OreCzml.
For this tool, I needed to create a NavBall for the user. Whiwh should looks like this :
In order to do so, I created a repository, where I added a few features to the UI of Cesium : link here.
To do so here are the steps that I followed :
- I created a 3D model of a navball (you can find it in the repository : “public>navball.glb”)
- I created a navball entity, knowing the position of the camera at any moment. Then converting the (x,y,z) cartesian position of the camera into spherical one. Adding a fixed offset in the spherical system, then converting back into the cartesian coordinates for the location of the navball. (You can find this at “src>index.js>from line 46 to 126”)
- Loading the 3D model of the navball. (“src>index.js>line 166”)
- (Not mandatory) Added a button to display or not the navball.
I hope this will help people that could need to do a navball with cesium.
If you have question about the navball or about anything related to the project, feel free to ask.
JL.