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

cesium1.5.0~1.6 can not rotate the model #8095

Closed
engineerhe opened this issue Aug 21, 2019 · 2 comments
Closed

cesium1.5.0~1.6 can not rotate the model #8095

engineerhe opened this issue Aug 21, 2019 · 2 comments

Comments

@engineerhe
Copy link

Since cesium 1.5.0 ,it can not roate 3dtiles modle any more.When i rotate the model , the model suddenly disappears, and the code as follows:
let m = tileset.modelMatrix;
let mx = Cesium.Matrix3.fromRotationY(Cesium.Math.toRadians(-1));
let rotationX = Cesium.Matrix4.fromRotationTranslation(mx);
Cesium.Matrix4.multiply(m, rotationX, m);
tileset._root.transform = m;

@lilleyse
Copy link
Contributor

This sounds like the same problem as #6755 (comment). That comment has a suggested fix if you are ok modifying CesiumJS locally.

You could also try upgrading the tileset, see #7036 (comment) for details.

@OmarShehata
Copy link
Contributor

I'm fairly certain it's the same problem as linked above. I posted a link to a recent forum thread discussing the same issue (see #7036 (comment)), and re-tiling your data with Cesium ion could be another easy way to fix it.

I'm closing this for now @engineerhe but feel free to follow up if these suggested fixes don't work.

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

3 participants