Skip to content

Commit

Permalink
example(Potree): fix minor issues on the example
Browse files Browse the repository at this point in the history
  • Loading branch information
mgermerie authored and gchoqueux committed Dec 21, 2021
1 parent 4bbc772 commit 1ee50c8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions examples/itowns-potree.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@

potreeViewer.setEDLEnabled(true);
potreeViewer.setControls(null);
potreeViewer.setBackground('black');
potreeViewer.loadGUI();

// Override Potree area measure method. The original Potree method gives a planar area delimited from given
Expand Down Expand Up @@ -153,8 +154,11 @@
// Setup loading screen.
setupLoadingScreen(viewerDiv, itownsViewer);

// Make atmosphere realistic.
itownsViewer.getLayerById('atmosphere').setRealisticOn(true);

// Controls and camera specific setting.
itownsViewer.controls.minDistanceCollision = 0;
itownsViewer.controls.minDistanceCollision = 0.01;
itownsViewer.controls.minDistance = 20;
itownsViewer.camera.camera3D.near = 0.1;

Expand Down Expand Up @@ -211,7 +215,7 @@

// ---------- DISPLAY POINT CLOUD DATA USING POTREE : ----------

const pointcloudUrl = 'http://lidarhd.pocgpf.ovh/data/';
const pointcloudUrl = `${location.protocol}//lidarhd.pocgpf.ovh/data/`;

itowns.Fetcher.json(
pointcloudUrl + 'metadata/pivotTHREE.json'
Expand Down

0 comments on commit 1ee50c8

Please sign in to comment.