This
Cesium demo depicts a Lunar mission with trajectories that were generated from NASA’s General Mission Analysis Tool (GMAT), http://daoneil.github.io/spacemission/Apps/EarthToMoon_Transforms.html
The
Moon’s orbit and a lunar probe trajectory are loaded from CZML files. Presently, the CZML file loads a solid ellipse as depicted in the first image. It appears that there is a Moon peeking out from behind the ellipse.
Notice that the from this view point the ellipse hides the Earth. If I change the show parameter to false in the CZML file, the Moon is still there but it is transparent. I the image, it appears that the Earth is in front of the Moon but from this view point the Moon is in front of the Earth.
How do I get a solid Moon?
Here a snippet of the CZML:
[ {
“id”:“document”,
“name”:“LunarOrbit”,
“version”:“1.0”,
“clock”:{
“interval”:“2014-07-22T11:00:
00Z/2014-08-12T22:07:27Z”,
“currentTime”:“2014-07-22T11:00:00Z”,
“multiplier”:60,
“range”:“LOOP_STOP”,
“step”:“SYSTEM_CLOCK_MULTIPLIER”
}},
{
“id”: “theMoon”,
“availability”:[“2014-07-22T11:00:00Z/2014-08-12T22:07:27Z”],
“ellipsoid” : {
“radii” : { “cartesian” : [ 1737000, 1737000, 1737000 ] },
“fill” : true,
“material”:{
“solidColor”:{ “color”:{ “rgba”:[ 100,100,100,255 ] } }
},
“show” : false
},
“billboard” : {
“eyeOffset” : {
“cartesian” : [0.0, 0.0, 0.0]
},
“horizontalOrigin” : “CENTER”,
"pixelOffset" : {
"cartesian2" : [0.0, 0.0]
},
"scale" : 0.8,
"show" : true,
"verticalOrigin" : "BOTTOM"
},
"label" : {
"fillColor" : {
"rgba" : [255, 255, 0, 255]
},
"font" : "bold 10pt Segoe UI Semibold",
"horizontalOrigin" : "LEFT",
"outlineColor" : {
"rgba" : [0, 0, 0, 255]
},
"pixelOffset" : {
"cartesian2" : [10.0, 0.0]
},
"scale" : 1.0,
"show" : true,
"style" : "FILL",
"text" : "Moon",
"verticalOrigin" : "CENTER"
},
“path” : {
“color” : { “rgba” : [150, 150, 150, 255] },
“width” : 1.5
},
“position”: {
“referenceFrame”: “INERTIAL”,
“cartesian”: [ ]
} }]