aardgoose / CaveView.js

Web native 3d cave survey viewer
https://aardgoose.github.io/CaveView.js/
MIT License
44 stars 11 forks source link

Altimetric layer become black in some areas #44

Open Francesco-NovaProject opened 3 years ago

Francesco-NovaProject commented 3 years ago

Hi, I'm facing an issue visualizing a survey. The problem is that moving the model in some cases the altimetic layer is like "cutted" on a plane, the cutted areas become black . I thought the reason was the size so I reduced the altimetric area but the problem still remains. The survey where I face the problem is this: https://www.speleopg.it/monte-maggio/ For example, for this other survey, I have no problems: https://www.speleopg.it/modelli-3d/

Could you please help me understanding where is the problem?

screenshot

screenshot1

aardgoose commented 3 years ago

Hi,

Thanks for the report.

This is a bug that is exposed by your model where the cave survey is small compared to the size of the terrain.

The view of the camera has a near plane and far plane, and only objects between those planes are visible. With the error in scaling, the terrain is being clipped by those planes.

I have fixed this in 2.2.1 which now displays your model correctly:

snapshot

Francesco-NovaProject commented 2 years ago

Hi, thanks for the reply, at the moment I continue to use this version so I cutted the terrein and added other caves and the issue seems to be solved. I have another question, as you can see at this link https://www.speleopg.it/monte-maggio the initial view is too close to the model so you can't see anything, you have to zoom out to see the caves. Is there a property that allows to set the initial zoom level? My actual view settings are these: view: { section: 0, entrances: false, cameraType: CV.CAMERA_PERSPECTIVE, box: false, terrain: true, view: CV.VIEW_ELEVATION_S, shadingMode: CV.MAP_OVERLAY, terrainShading: CV.SHADING_OVERLAY, walls: true, HUD: false, autoRotate: false, autoRotateRate: 1.0, stations: false, stationLabels: false, fullscreen: false } Thanks a lot.