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

Add Geometry tile support #6034

Merged
merged 12 commits into from Dec 12, 2017
Merged

Add Geometry tile support #6034

merged 12 commits into from Dec 12, 2017

Conversation

bagnell
Copy link
Contributor

@bagnell bagnell commented Dec 6, 2017

Adds Geometry (boxes, cylinders, etc.) tile support. Removes the same features from Vector tiles. Vector tiles are now just points, polygons, and polylines.

@cesium-concierge
Copy link

Signed CLA is on file.

@bagnell, thanks for the pull request! Maintainers, we have a signed CLA from @bagnell, 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.

🌍 🌎 🌏

@@ -37,7 +37,7 @@
// For more details, see:
// https://github.com/AnalyticalGraphicsInc/3d-tiles/tree/vector-tiles/TileFormats/VectorData
var classification = viewer.scene.primitives.add(new Cesium.Cesium3DTileset({
url: 'https://beta.cesium.com/api/assets/3394?access_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiIzZjM4MjljZi0xNTAzLTQ0MzctODhlZi0zOTU3Njg5ODA1Y2QiLCJpZCI6OCwiaWF0IjoxNDgxODI5ODMyfQ.dYlV8_PoXcFNlPHGook5kMzuJMS-Bb9DCMzI1mFVvgE',
url: 'https://beta.cesium.com/api/assets/3469?access_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiIzZjM4MjljZi0xNTAzLTQ0MzctODhlZi0zOTU3Njg5ODA1Y2QiLCJpZCI6OCwiaWF0IjoxNDgxODI5ODMyfQ.dYlV8_PoXcFNlPHGook5kMzuJMS-Bb9DCMzI1mFVvgE',
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we add an option to use the geometry tile for rendering vs. classification?

Or is it only suitable for classification right now and we will roadmap rendering, e.g., normals, styling, etc. I would be fine with that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is only suitable for classification right now. I would put geometry tile rendering on the roadmap.

@@ -1,440 +0,0 @@
define([
Copy link
Contributor

Choose a reason for hiding this comment

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

I think I am missing something - should these files be deleted? I thought they were used by the b3dm transcode for classification via b3dm.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The transcode uses Vector3DTilePrimitive which takes buffers and re-batching information.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I merged in the latest from b3dm-class so you can run the Sandcastle examples.

@pjcozzi
Copy link
Contributor

pjcozzi commented Dec 7, 2017

Do you get test failures? I get failures like:

image

@pjcozzi
Copy link
Contributor

pjcozzi commented Dec 7, 2017

Otherwise looks good at quick glance. Please update the spec too, of course.

@bagnell
Copy link
Contributor Author

bagnell commented Dec 11, 2017

Do you get test failures?

I don't see any and the Travis tests also passed.

@bagnell
Copy link
Contributor Author

bagnell commented Dec 11, 2017

@pjcozzi This should be ready to go.

@pjcozzi
Copy link
Contributor

pjcozzi commented Dec 12, 2017

Looks good!

@lilleyse I'm going to merge this (into b3dm-class). Feel free to chime in here next week or later when we have more free time. 😄

@pjcozzi pjcozzi merged commit 618a892 into b3dm-class Dec 12, 2017
@pjcozzi pjcozzi deleted the vector-split branch December 12, 2017 02:21
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.

None yet

3 participants