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

Update New York CityGML 3D Tileset #6555

Merged
merged 4 commits into from
May 25, 2018

Conversation

shehzan10
Copy link
Member

  • Better streaming performance with draco compressed tiles.
  • Uses new tiling algorithm with smarter tiling.
  • Longitude/Latitude are in degrees so there is a conversion in styling.
  • Add lon/lat/height to the feature picking table.
  • Remove the area styling - no longer a property of the tileset.

* Better streaming performance with draco compressed tiles.
* Uses new tiling algorithm with smarter tiling.
* Longitude/Latitude are in degrees so there is a conversion in styling.
* Add lon/lat/height to the feature picking table.
* Remove the area styling - no longer a property of the tileset.
@cesium-concierge
Copy link

Signed CLA is on file.

@shehzan10, thanks for the pull request! Maintainers, we have a signed CLA from @shehzan10, so you can review this at any time.

⚠️ I noticed that CHANGES.md has not been updated. If this change updates the public API in any way, fixes a bug, or makes any non-trivial update, please add a bullet point to CHANGES.md and comment on this pull request so we know it was updated. For more info, see the Pull Request Guidelines.


I am a bot who helps you make Cesium awesome! Contributions to my configuration are welcome.

🌍 🌎 🌏

// Color buildings by their latitude coordinate.
function colorByLatitude() {
tileset.style = new Cesium.Cesium3DTileStyle({
defines: {
latitudeRadians: "Number(${latitude}) * 0.0174532925"
Copy link
Contributor

Choose a reason for hiding this comment

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

["${height} >= 25", "rgb(252, 230, 200)"],
["${height} >= 10", "rgb(248, 176, 87)"],
["${height} >= 5", "rgb(198, 106, 11)"],
["Number(${height}) >= 300", "rgba(45, 0, 75, 0.5)"],
Copy link
Contributor

Choose a reason for hiding this comment

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

We had talked about this earlier, but is the cast required? Does it suggest something is different about the new tileset?

@@ -105,14 +101,14 @@
// Color buildings with a '3' in their name.
function colorByNameRegex() {
tileset.style = new Cesium.Cesium3DTileStyle({
color : "(regExp('3').test(${name})) ? color('cyan', 0.9) : color('purple', 0.1)"
color : "(regExp('3').test(String(${name}))) ? color('cyan', 0.9) : color('purple', 0.1)"
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the string cast required?

@lilleyse
Copy link
Contributor

lilleyse commented May 2, 2018

We should also wait to merge until Draco is supported in IE: #6404.

@mramato
Copy link
Contributor

mramato commented May 2, 2018

Awesome.

What's the status of Draco support in IE11? I assume this tileset won't load there? We should probably hold off on merging this until IE11 works.

@hpinkos
Copy link
Contributor

hpinkos commented May 24, 2018

Marking this next release because it sounds like it can be merged as soon as #6626 is

@shehzan10
Copy link
Member Author

I'm generating a new tileset that uses PBR materials instead of WebGL extension. Please wait for my word before merging this.

@shehzan10
Copy link
Member Author

This is now ready for review and merge.

@hpinkos
Copy link
Contributor

hpinkos commented May 25, 2018

Looks great @shehzan10, thanks!

@hpinkos hpinkos merged commit 0afe61c into CesiumGS:master May 25, 2018
@shehzan10 shehzan10 deleted the update-nyc-citygml branch January 24, 2019 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants