iTowns / itowns

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

[Proposal] Feature for souterrain/underground data visualization #2281

Open AnthonyGlt opened 4 months ago

AnthonyGlt commented 4 months ago

Context

Having a feature for souterrain/underground data visualization could add a new dimension in iTowns.

Proposal

Having the possibility to see through the ground to look at underground data such as sewer, fiber cable, subway line etc... The globe/plan opacity will decrease and show this kind of data.

Implementation

Must hide the skirt https://github.com/iTowns/itowns/pull/2280 Disable the atmosphere and change the background colour of the scene, or else it will be blinding Decrease the globe/plan opacity

Example of the code to achieve the wanted result:

view.tileLayer.hideSkirt = true;
view.tileLayer.opacity = 0.2;             
const atmo = view.getLayerById('atmosphere');
atmo.visible = false;
view.scene.background = new itowns.THREE.Color(0x000000);

232458669-e1719590-852a-4648-bd3b-a58ebd09bd90