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

viewExtent changed in b25 #1431

Closed
chris-cooper opened this issue Feb 4, 2014 · 4 comments
Closed

viewExtent changed in b25 #1431

chris-cooper opened this issue Feb 4, 2014 · 4 comments

Comments

@chris-cooper
Copy link
Contributor

The camera used to look straight down in b24 but now looks at an angle in b25. This can be reproduced by navigating to the Hello World Sandcastle and entering the following code...

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

var frameAustralia = function(viewer) {
    var west = Cesium.Math.toRadians(90.0);
    var south = Cesium.Math.toRadians(-50.0);
    var east = Cesium.Math.toRadians(157.0);
    var north = Cesium.Math.toRadians(0.0);
    var extent = new Cesium.Extent(west, south, east, north);
    viewer.scene.getCamera().controller.viewExtent(extent);
};

frameAustralia(viewer);
@pjcozzi
Copy link
Contributor

pjcozzi commented Feb 4, 2014

I'm pretty sure this is by design because we changed a geocentric normal to a geodetic, but @bagnell can confirm.

@kring
Copy link
Member

kring commented Feb 4, 2014

Nah, something is wrong. Looking down the geodetic normal should appear to be "straight down" and even looking down the geocentric normal would look less skewed than that.

@kring
Copy link
Member

kring commented Feb 4, 2014

Also notice that middle mouse rotate is totally messed up after the viewExtent.

@pjcozzi
Copy link
Contributor

pjcozzi commented Feb 4, 2014

@bagnell please have a look.

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

4 participants