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

Rendering 3D Models #2806

Open
hactar opened this issue Sep 6, 2024 · 2 comments
Open

Rendering 3D Models #2806

hactar opened this issue Sep 6, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@hactar
Copy link
Collaborator

hactar commented Sep 6, 2024

Is your feature request related to a problem? Please describe.
Many modern mapping solutions can display 3D models of landmarks such as the Eiffel Tower, or the Statue of Liberty. MapLibreJS offers a solution for this too (https://maplibre.org/maplibre-gl-js/docs/examples/add-3d-model-with-terrain/) MapLibre Native does not. We'd like to be able to add 3D models of a handful of buildings to the map.

Describe the solution you'd like
We're looking for a solution similar to https://maplibre.org/maplibre-gl-js/docs/examples/add-3d-model-with-terrain/, but for MapLibre Native.

Short Term: some form of custom layer that could be added which loads in 3d models and renders them on the map. 3D building extrusions would need to be made compatible with this to ensure that 3d models behind builds are occluded by extrusions.
Long Term: 3D tile support, potentially as part of/compatible with 3D terrain support.

Describe alternatives you've considered
While a hack can be made where one draws 3D models on top of MapLibre Native using a different 3D engine such as SceneKit or RealityKit and then synchronizes offsets and zoom with MapLibre Native, one big problem of this solution would be that building extrusions would always be drawn behind the 3D model, which would cause z-order issues for tilted maps.

Additional context
@sjg-wdw can provide additional technical context from the call we had (thanks again for that 😊)

@louwers louwers added the enhancement New feature or request label Sep 6, 2024
@louwers
Copy link
Collaborator

louwers commented Sep 6, 2024

Related #2725

@sjg-wdw
Copy link
Collaborator

sjg-wdw commented Sep 10, 2024

I think you described it well!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants