Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Altimetric layer become black in some areas #44

Open
Francesco-NovaProject opened this issue Aug 21, 2021 · 2 comments
Open

Altimetric layer become black in some areas #44

Francesco-NovaProject opened this issue Aug 21, 2021 · 2 comments

Comments

@Francesco-NovaProject
Copy link

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
Copy link
Owner

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants