iTowns / itowns

A Three.js-based framework written in Javascript/WebGL for visualizing 3D geospatial data
http://www.itowns-project.org
Other
1.09k stars 293 forks source link

3D tiles -wrong bounding volume box orientation #2126

Open jogarnier opened 1 year ago

jogarnier commented 1 year ago

When I zoom or pan some tiles just not render or whole tileset destructs until the view angle or zoom will not be changed. (really similar to https://github.com/iTowns/itowns/issues/1859) but with bouding boxes

Your Environment

https://github.com/iTowns/itowns/assets/111570217/4d987951-2f27-4566-beca-4a92e55e256f

Steps to Reproduce (for bugs)

  1. https://github.com/jogarnier/itowns/tree/feat/google3dTiles
  2. add a C3DTilesGoogleSource with your own Google api key
  3. deactivate globe layer view
  4. zoom on globe

Expected Behavior

Tiles rendered should stay visible until replaced by a lower / higher level tile

Possible Cause/Fix/Solution

Bouding boxes seems to be non oriented as expected ?

jailln commented 1 year ago

It's because bounding volumes of type 'box' are interpreted as AABB while there are OBB in this method.