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
728 stars 287 forks source link

XKT file hide over the canvas #420

Closed Kishanpparmar closed 4 years ago

Kishanpparmar commented 4 years ago

Hello, when I load the XKT file it will hide by the canvas after zoom it will show but at the time 360 degree rotating it will hide some portion check the att Image1 Image2

ached Images.

xeolabs commented 4 years ago

Looks like WebGL's far clipping plane is slicing part of your model.

To fix, either reduce the scale of your model (recommended), or increase the distance to far clipping plane like this:

myViewer.scene.camera.perspective.far = 10000.0;
myViewer.scene.camera.ortho.far = 10000.0;
Kishanpparmar commented 4 years ago

Hello, Thanks for your help. after applying camera.perspective.far and camera.ortho.far my problem is resolved but facing issue in Annotation, Annotation are not display on object. I also apply annotations.surfaceOffset = 10000.0 still facing issue.