Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Entity with time-dynamic ellipsoid doesn't know its position #4893

Closed
emackey opened this issue Jan 20, 2017 · 3 comments
Closed

Entity with time-dynamic ellipsoid doesn't know its position #4893

emackey opened this issue Jan 20, 2017 · 3 comments

Comments

@emackey
Copy link
Contributor

emackey commented Jan 20, 2017

This demo shows our typical AGI example entity, with an Ellipsoid attached with time-dynamic radii. If you follow this entity with any of trackedEntity, selectedEntity, or zoomTo, the camera and/or selector will travel deep into the Solar System, very far from the Earth.

This was not a bug in Cesium 1.25 and 1.26. It first appears in Cesium 1.27, and is present in 1.29 and in master today. I have not yet had time to bisect any more finely than that, but I plan to.

var czml = [{
    "id" : "document",
    "name" : "Basic CZML billboard and label",
    "version" : "1.0",
    "clock":{
      "interval":"2017-01-20T12:00:00Z/2017-01-20T13:00:00Z",
      "currentTime":"2017-01-20T12:00:00Z",
      "multiplier":300,
      "range":"LOOP_STOP"
    }
}, {
    "id" : "some-unique-id",
    "name" : "AGI",
    "description" : "<p><a href='http://www.agi.com' target='_blank'>Analytical Graphics, Inc.</a> (AGI) founded Cesium.</p>",
    "billboard" : {
        "image" : "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAACvSURBVDhPrZDRDcMgDAU9GqN0lIzijw6SUbJJygUeNQgSqepJTyHG91LVVpwDdfxM3T9TSl1EXZvDwii471fivK73cBFFQNTT/d2KoGpfGOpSIkhUpgUMxq9DFEsWv4IXhlyCnhBFnZcFEEuYqbiUlNwWgMTdrZ3JbQFoEVG53rd8ztG9aPJMnBUQf/VFraBJeWnLS0RfjbKyLJA8FkT5seDYS1Qwyv8t0B/5C2ZmH2/eTGNNBgMmAAAAAElFTkSuQmCC",
        "scale" : 1.5
    },
    "label" : {
        "fillColor" : {
            "rgba" : [255, 255, 255, 255]
        },
        "font" : "12pt Lucida Console",
        "horizontalOrigin" : "LEFT",
        "pixelOffset" : {
            "cartesian2" : [8, 0]
        },
        "style" : "FILL",
        "text" : "AGI",
        "showBackground" : true,
        "backgroundColor" : {
            "rgba" : [112, 89, 57, 200]
        }
    },
    "position" : {
        "cartesian":[
            1216361.4096947117, -4736253.175342511, 4081267.4865667094
        ]
    },
    "ellipsoid":{
      "radii":{
        "epoch":"2017-01-20T12:00:00Z",
        "cartesian":[
            0, 200000, 100000, 250000,
            3600, 400000, 200000, 500000
        ]
      },
      "material":{
        "grid":{
          "color":{
            "rgba":[
              255,255,0,255
            ]
          },
          "lineCount":{
            "cartesian2":[
              12,12
            ]
          }
        }
      }
    }
}];

var viewer = new Cesium.Viewer('cesiumContainer');
Cesium.CzmlDataSource.load(czml).then(function(dataSource) {
    viewer.dataSources.add(dataSource);
    viewer.zoomTo(dataSource);
});
@shunter
Copy link
Contributor

shunter commented Jan 20, 2017

probably the same as #4866

@pjcozzi
Copy link
Contributor

pjcozzi commented Jan 20, 2017

OK to close as duplicate? Perhaps add the above code example there as another test case?

@emackey
Copy link
Contributor Author

emackey commented Jan 20, 2017

Closing as likely due to same cause as #4866.

@emackey emackey closed this as completed Jan 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants