-
-
Notifications
You must be signed in to change notification settings - Fork 690
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-3d-model-babylon.html] set rootMesh.position.y = -35 3D model disappears #4528
Comments
Please provide a jsbin/codepen/stackbliz and better explain the expected vs actual. |
Sorry, maplibre.js version** v4.5.2 I started with the example maplibre-gl-js/test/examples The 3d model of the satellite dish goes beyond the map plane and it's not visible from some perspective as you can see from the video.
The idea with the code above is cutting all the layers including the map for solving the visualization of the negative y portion of the model, but the problem persist. My final goal would be to display excavations on the map, so using transparency on the map layer for making visible the part of the excavations which are in the underground. I don't know if it is a bug or not, but if there is a way to display model also under the map would be awesome. Any suggestions? Best regards |
I think you'll need to tweak the farZ plane. |
Thank you for the answer, I have successfully solved my problem. Thank you for the amazing project, |
It's calculated constantly basically, so I'm not sure what would be a good solution to this. |
Hi guys,
maplibre.js version v4.5.2
broswer : edge or chrome
I started with the example maplibre-gl-js/test/examples
/add-3d-model-babylon.html, I modified the line 131 of the code adding rootMesh.position.y = -35 and this is the result:
https://github.com/user-attachments/assets/08607d37-3242-47d8-ab58-92b6500a64b3
The 3d model of the satellite dish goes beyond the map plane and it's not visible from some perspective as you can see from the video.
I have tryed to add at line 206 this line of code:
The idea with the code above is cutting all the layers including the map for solving the visualization of the negative y portion of the model, but the problem persist.
My final goal would be to display excavations on the map, so using transparency on the map layer for making visible the part of the excavations which are in the underground.
I don't know if it is a bug or not, but if there is a way to display model also under the map would be awesome.
Any suggestions?
Thank you for the help
Best regards
The text was updated successfully, but these errors were encountered: