Replies: 2 comments 14 replies
-
I'm not familiar enough with threebox to answer this question unfortunately. |
Beta Was this translation helpful? Give feedback.
-
For future reference - the Threebox integration relies on point.x and point.y values passed into the render callback for the maplibregl custom layer. It uses these to offset the modelMatrix for the 'world' that holds all the ThreeJS Objects. It seems in v5 that the point getter has been deprecated/moved? My mistake was assuming that the old point values had been replaced with cameraPosition - but they differ when the camera rotates. ( maplibre-gl-js/src/geo/transform.ts Line 486 in 87486a5 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to understand what is needed for threebox/three.js to work properly with the latest maplibre v5.
I had asked a similar question at jscastro76/threebox#444 and verified that threebox's example is able to work with maplibre v4 even though that project does not officially support maplibre. I just need some information on the possible changes that are needed if I want to use threebox with maplibre v5.
Sandbox example using maplibre v4 + threebox: https://codepen.io/prusswan/pen/yyLBNgw
Beta Was this translation helpful? Give feedback.
All reactions