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

Textures seem incorrect on ellipses #2465

Closed
mramato opened this issue Feb 4, 2015 · 0 comments · Fixed by #2475
Closed

Textures seem incorrect on ellipses #2465

mramato opened this issue Feb 4, 2015 · 0 comments · Fixed by #2475

Comments

@mramato
Copy link
Contributor

mramato commented Feb 4, 2015

As seen in the Visualizing Spatial Data tutorial, paste the below code into Sandcastle and you get the below image. I'm not exactly sure how a 4x4 checkerboard is supposed to work with ellipse, but it's definitely not right. Same thing for every other material I tried with ellipses (more pictures in tutorial).

var viewer = new Cesium.Viewer('cesiumContainer');

var entity = viewer.entities.add({
  position: Cesium.Cartesian3.fromDegrees(-103.0, 40.0),
  ellipse : {
    semiMinorAxis : 250000.0,
    semiMajorAxis : 400000.0,
    material : new Cesium.CheckerboardMaterialProperty({
      evenColor : Cesium.Color.WHITE,
      oddColor : Cesium.Color.BLACK,
      repeat : new Cesium.Cartesian2(4, 4)
    })
  }
});

viewer.zoomTo(viewer.entities);

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants