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

Added RTC_CENTER property support to b3dm #6740

Merged
merged 3 commits into from
Jun 29, 2018
Merged

Added RTC_CENTER property support to b3dm #6740

merged 3 commits into from
Jun 29, 2018

Conversation

ggetz
Copy link
Contributor

@ggetz ggetz commented Jun 27, 2018

Fixes #6488

Reflects the spec changes (CesiumGS/3d-tiles#263) as part of 3D Tiles 1.0.

Part of #6697

@ggetz ggetz requested a review from lilleyse June 27, 2018 19:32
@cesium-concierge
Copy link

Signed CLA is on file.

@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.

🌍 🌎 🌏

Copy link
Contributor

@lilleyse lilleyse left a 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();
Copy link
Contributor

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"
Copy link
Contributor

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 );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove space: (expectedModelTransform );

@ggetz
Copy link
Contributor Author

ggetz commented Jun 29, 2018

Thanks @lilleyse, all cleaned up!

@lilleyse
Copy link
Contributor

👍

@lilleyse lilleyse merged commit 778cce4 into master Jun 29, 2018
@lilleyse lilleyse deleted the b3dm-rtc-center branch June 29, 2018 19:10
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

Successfully merging this pull request may close these issues.

3 participants