iTowns / itowns

A Three.js-based framework written in Javascript/WebGL for visualizing 3D geospatial data
http://www.itowns-project.org
Other
1.09k stars 296 forks source link

[Example] Google Photorealistic 3D Tiles #2099

Open jailln opened 1 year ago

jailln commented 1 year ago

Add an example displaying Google Photorealistic 3D Tiles:

https://cloud.google.com/blog/products/maps-platform/create-immersive-3d-map-experiences-photorealistic-3d-tiles?hl=en https://developers.google.com/maps/documentation/tile/create-renderer?hl=en

AnthonyGlt commented 1 year ago

I've tried to display these tiles in iTowns, I had to do some workaround but the result is nice and probably worth the integration: Screenshot from 2023-05-31 09-53-03 We need to;

I did a quick test of the implementation but my work is not good enough for a PR, the tiles are not correclty loaded, some faulty behaviors. But I believe that it could be implementable without too much effort. Faulty loading of tiles: Screenshot from 2023-05-31 10-16-13 Screenshot from 2023-05-31 10-15-54

jailln commented 1 year ago

Cool thanks! Regarding "faulty loading of tiles", it looks like some tiles may be under the ground, we can try to offset each tile a little bit to verify if it's not the cause of the wrong display

AnthonyGlt commented 1 year ago

You were right, by hiding the globe layer, we can see that the tiles are loaded . Still unstable though.

https://github.com/iTowns/itowns/assets/126568810/07281757-757e-474e-950f-7ee141a8562d

jailln commented 1 year ago

that may come from the bounding boxes that are considered axis aligned while they should not. I'm currently working on that

alexLuky commented 1 year ago

@jailln perhaps fixing this issue you'll find the reason why Cesium renders sphere boxes more stable than itowns does. Previously it was mentioned in these issues: 1, 2, 3

jailln commented 1 year ago

Useful insights about google tiles querying: https://github.com/CesiumGS/3d-tiles/issues/746