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

rotate 3dtile doesn't work in cesiumjs 1.66 #8611

Closed
peterchen2001 opened this issue Feb 13, 2020 · 1 comment
Closed

rotate 3dtile doesn't work in cesiumjs 1.66 #8611

peterchen2001 opened this issue Feb 13, 2020 · 1 comment

Comments

@peterchen2001
Copy link

Hi experts,

Below code snippet works in early cesium version, however the 3dtile disappear in cesiumjs 1.66, how to rotate 3dtile in new version? thands in advance for any clues.

var m = tileset.modelMatrix;
var m1 = Cesium.Matrix3.fromRotationX(Cesium.Math.toRadians(rotateXAngle));
Cesium.Matrix4.multiplyByMatrix3(modelMatrix, m1, modelMatrix);
tileset.modelMatrix = m;

@OmarShehata
Copy link
Contributor

I believe this is an issue with older 3D Tilesets. There's a suggested source code fix here: #6755 (comment)

Or you can upgrade your tileset as described here: #7036 (comment)

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