2D Footprints from Cesium3DTileset#13244
2D Footprints from Cesium3DTileset#13244alarkbentley wants to merge 27 commits intoCesiumGS:mainfrom
Conversation
|
Thank you for the pull request, @alarkbentley! ✅ We can confirm we have a CLA on file for you. |
|
It's only a draft, but some (early) pointers, to weave the web of things that are related (and point out connections and redundancies, both in terms of existing- and newly written code, as well as the process of writing that code) It looks like this is a "runtime-equivalent" of what whas requested as a CLI functionality for the The The (In the context of the |
|
Thanks for the ping @javagl of course it is ok to tag me. This looks interesting, although our use-case was generalizing a utility to gather footprints as geo-format to be consumed outside of the cesium ecosystem of libraries - eg validation within gis, desktop or web, rough analytics like footprint area etc. Hence the idea to implement it within 3d-tiles-tools, by the way I can do a quick PR if you deem it useful and generalizable enough Interesting to see the proposal. I can definitely see the use-case for automated clip (and polygon to some extent) so a tileset can be displayed on top of a context data (terrain or other 3d-tiles tileset like Google Photorealistic 3D Cities). What would be even nicer with clipping is building up the vertical planes (like you do it, normals parallel to the plane tangent to the globe at the scene center coordinate) only for the portion of the tileset that do intersect the terrain (be it wgs84 globe, 3D-tiles terrain or quantized-mesh globe). This would result, in your screencast, in the "shadow would not be clipped". Als ojust discovered about the effort for VertexProcessing to a consumer function, nice idea! |
The Conversely, on the "consuming" side, there could be some That could then be used with pseudocode like This GeoJSON-producer could trivially be fed either with the actual vertices of the geometry or with the corners of bounding boxes. (It doesn't care or matter at this point - and things like the projection could be wired in anywhere...) This is just brainstorming for now - the tools PR still has to be wrapped up. But I think that there is some connection:
I have not yet looked at all the details of this PR, but as mentioned in the first comment: There already seems to be some functionality that resembles the "runtime version" of that Also just brainstorming 🙂 |
Description
Demo
2d-footprints-260304.mp4
Code Example
Terrain clipping — cut holes in the globe where buildings are
Render 3D Mesh as 2D Polygons — uses average vertex color and maxHeight as zIndex
Issue number and link
Testing plan
Author checklist
CONTRIBUTORS.mdCHANGES.mdwith a short summary of my change