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

How to display custom ellipsoid data in cesium current version(1.59) #8000

Closed
wenjiangchun opened this issue Jul 15, 2019 · 1 comment
Closed

Comments

@wenjiangchun
Copy link

wenjiangchun commented Jul 15, 2019

Hi, I want to show the image data of the moon.When I refer to the code #4245

var ellipsoid = Cesium.Ellipsoid.MOON;

    var imagery = new Cesium.SingleTileImageryProvider({
        ellipsoid: ellipsoid,
        url: Cesium.buildModuleUrl('Assets/Textures/moonSmall.jpg')
    });

    var viewer = new Cesium.Viewer('cesiumContainer', {
        mapProjection: new Cesium.GeographicProjection(ellipsoid),
        imageryProvider: imagery,
        selectionIndicator : false,
        infoBox : false,
        baseLayerPicker: false,
        geocoder: false,
        skyAtmosphere: false
    });

1
3D can't be displayed. When I switch to 2D, the data can be displayed. But when I switch from 2D to 3D, the sphere display disappears. Does that happen when the ellipsoid definition value is too small? If the larger value in the defined Ellipsoid(Just like Jupiter's ellipsoid[ 'x': 71492000.0,'y':71492000.0, 'z': 66864000.0) can be displayed, how can I solve this problem?

Cesium current version 1.59, when I used version 1.48, it showed normal.)

@wenjiangchun wenjiangchun changed the title How to display cumtom ellipsoid data How to display cumtom ellipsoid data in cesium current version(1.59) Jul 15, 2019
@wenjiangchun wenjiangchun changed the title How to display cumtom ellipsoid data in cesium current version(1.59) How to display custom ellipsoid data in cesium current version(1.59) Jul 15, 2019
@OmarShehata
Copy link
Contributor

I think you just need to turn off the groundAtmosphere:

viewer.scene.globe.showGroundAtmosphere = false;

I looked at this bug report for reference which also used a lunar ellipsoid: #7552.

I'll make a note in the issue you linked to about this. Thanks for reporting it!

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

No branches or pull requests

2 participants