xeokit / xeokit-sdk

Open source JavaScript SDK for viewing high-detail, full-precision 3D BIM and AEC models in the Web browser.
https://xeokit.io
Other
737 stars 291 forks source link

StoreyViewsPlugin#gotoStoreyCamera() positions camera incorrectly #269

Closed heshamhossam closed 4 years ago

heshamhossam commented 4 years ago

Hi Lindsay,

there is an issue while picking/navigating using a storey map. to reproduce:

  1. go to https://xeokit.github.io/xeokit-sdk/examples/#storeyViews_StoreyViewsPlugin_pickStoreyMap
  2. click anywhere over the storey map
  3. it navigates deeply down even under the building itself

Thanks.

xeolabs commented 4 years ago

@heshamhossam Aha yes. That's due to the camera position when making the snapshot image - the camera's "up" vector is pointing the wrong way (I think [0,0,-1] when it should be [0,0,1]). So the storey map is basically upside down. Upping the priority on this one. Thanks!

heshamhossam commented 4 years ago

Thanks in advance and waiting for the fix.

xeolabs commented 4 years ago

Now fixed in master and npm @xeokit/xeokit-sdk 0.9.3