-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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 support for rendering 3d models #3996
Comments
My team is interested in learning more about the status of this feature - we are also in a place where simple extrusions will not work, and we have a wealth of 3d model data that we think would fit better inside our MapboxGL stack. Any chance there's direct access to the scene interface? Is a pathway for this related to #6456? Thanks! |
Exactly @allthesignals, custom layers (#6456) will be the soonest you'll be able to accomplish this, and that feature will likely land ~this summer — native Mapbox GL support for 3D models isn't on our short- or medium-term roadmap at this time. |
Over on the PR I posted some example code which helps place 3D models at given long, lats |
Fabulous - thanks @andrewharvey! |
How can we use custom layer to display 3D terrain (by extruding raster DEM heights or something similar)? I had hoped for an example of that. But it seems its not possible at this time, correct ? |
Is it possible to move the 3d object without re-importing the 3d model? |
@Daandeve Using the example at https://docs.mapbox.com/mapbox-gl-js/example/add-3d-model/, the render method is called each frame and it refers to the modelTransfom object. So if you update your the modelTransform object to a new location, the model will move on the next frame. |
@femski It is possible to build that yourself at the moment, I have implemented it, in a similar way to https://blog.mapbox.com/bringing-3d-terrain-to-the-browser-with-three-js-410068138357?, but I don't have the code to share as it's wrapped up in a whole application. However you can see at https://blog.mapbox.com/taking-our-maps-to-the-next-dimension-dbeee37a7c4c Mapbox is working on adding this as an out of the box feature. |
@andrewharvey Do you have a example? |
@Daandeve sorry I don't. |
Okay thanks! |
@andrewharvey Hello, I tried it myself, but I couldn't implement it well. :( |
@Daandeve would you be able to share your approach? |
I'm also very curious to add multiple gltf or .obj models to the map in a single custom layer. Can anyone give an example code. |
@andrewharvey |
Hi, maybe i help you because my experiency is very large around this. You feel free tô call me +55349967019714 |
Continued from mapbox/DEPRECATED-mapbox-gl#17
cc @mourner @tmcw @jfirebaugh
The text was updated successfully, but these errors were encountered: