-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Added RTC_CENTER property support to b3dm #6740
Conversation
@ggetz, thanks for the pull request! Maintainers, we have a signed CLA from @ggetz, so you can review this at any time. I am a bot who helps you make Cesium awesome! Contributions to my configuration are welcome. 🌍 🌎 🌏 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works great. Tested with the tileset in https://groups.google.com/forum/#!topic/cesium-dev/8zJhev5Vh5w.
@@ -346,6 +355,14 @@ define([ | |||
primitive : tileset | |||
}; | |||
|
|||
content._rtcCenterTransform = Matrix4.IDENTITY.clone(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prefer the static function form: Matrix4.clone(Matrix4.IDENTITY)
@@ -0,0 +1,59 @@ | |||
{ | |||
"asset": { | |||
"version": "0.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change version to 1.0
|
||
var expectedModelTransform = Matrix4.multiply(tileset._root.transform, rtcTransform, new Matrix4()); | ||
expect(tileset._root._content._contentModelMatrix).toEqual(expectedModelTransform); | ||
expect(tileset._root._content._model._modelMatrix).toEqual(expectedModelTransform ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove space: (expectedModelTransform );
Thanks @lilleyse, all cleaned up! |
👍 |
Fixes #6488
Reflects the spec changes (CesiumGS/3d-tiles#263) as part of 3D Tiles 1.0.
Part of #6697