jscastro76 / threebox

A Three.js plugin for Mapbox GL JS, with support for animations and advanced 3D rendering.
Other
560 stars 147 forks source link

Resize mapbox window issue #293

Open patrik-u opened 2 years ago

patrik-u commented 2 years ago

I have a map that is 100% size of the browser window and when the window is resized the 3-D rendering objects is warped out of sync with the map. Looks like the issue is there in the 12-add3dmodel and 13-eiffel example as well (but not 06-object3d). Any way to correct this?

Gif showing the issue: https://imgur.com/a/i7kepjG

yueyanshaosun commented 2 years ago

When I zoom in the browser window, three 3D objects will be compressed

EgorKrasno commented 2 years ago

My objects aren't resizing, however, the click area of the bounding box seems to not move with the models when the screen size changes.

EgorKrasno commented 2 years ago

I have a map that is 100% size of the browser window and when the window is resized the 3-D rendering objects is warped out of sync with the map. Looks like the issue is there in the 12-add3dmodel and 13-eiffel example as well (but not 06-object3d). Any way to correct this?

Gif showing the issue: https://imgur.com/a/i7kepjG

I encountered this problem when using the real sky box, using default lights seemed to fix the problem.