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

[Example] Google Photorealistic 3D Tiles #2099

Open
jailln opened this issue May 22, 2023 · 6 comments
Open

[Example] Google Photorealistic 3D Tiles #2099

jailln opened this issue May 22, 2023 · 6 comments
Assignees
Labels
3d-tiles demo 🎢 Sharing a demo
Milestone

Comments

@jailln
Copy link
Contributor

jailln commented May 22, 2023

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

@jailln jailln added demo 🎢 Sharing a demo 3d-tiles labels May 22, 2023
@jailln jailln added this to the 2.xx.x milestone May 22, 2023
@AnthonyGlt
Copy link
Contributor

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;

  • Implement a new C3DTilesSource (like what was done with C3DTilesIonSource). It's necessary to request the Google tiles by giving the API key and sessionId for each call.
  • Implement a GLTFParser and a C3DTGLTFExtension to handle 3DTILES_content_gltf
  • Don't forget to enableDracoLoader

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

jailln commented May 31, 2023

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

AnthonyGlt commented May 31, 2023

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

Screencast.from.31-05-2023.11.47.57.mp4

@jailln
Copy link
Contributor Author

jailln commented May 31, 2023

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

@alexLuky
Copy link

@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
Copy link
Contributor Author

jailln commented Jun 13, 2023

Useful insights about google tiles querying: CesiumGS/3d-tiles#746

@LoicUTC LoicUTC added this to Roadmap Jun 19, 2023
@LoicUTC LoicUTC moved this to Mid term in Roadmap Jun 19, 2023
@LoicUTC LoicUTC moved this from Mid term to Short term in Roadmap Jun 19, 2023
@jailln jailln moved this from In Progress to In review in Next Version (September 2023) Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3d-tiles demo 🎢 Sharing a demo
Projects
Status: Short term
Development

No branches or pull requests

4 participants