diff --git a/examples/meshes.html b/examples/meshes.html
index f927aa74..3fecbe94 100644
--- a/examples/meshes.html
+++ b/examples/meshes.html
@@ -151,6 +151,57 @@
});
+
+ {
+ let manager = new THREE.LoadingManager();
+ manager.onProgress = function ( item, loaded, total ) {
+ console.log( item, loaded, total );
+ };
+ let textureLoader = new THREE.TextureLoader( manager );
+ let texture = textureLoader.load(`${Potree.resourcePath}/textures/brick_pavement.jpg`);
+ let onProgress = function ( xhr ) {
+ if ( xhr.lengthComputable ) {
+ let percentComplete = xhr.loaded / xhr.total * 100;
+ console.log( Math.round(percentComplete, 2) + '% downloaded' );
+ }
+ };
+ texture.wrapS = THREE.RepeatWrapping;
+ texture.wrapT = THREE.RepeatWrapping;
+
+ let onError = function ( xhr ) {};
+ let loader = new THREE.OBJLoader( manager );
+ loader.load(`${Potree.resourcePath}/models/stanford_bunny_reduced.obj`, function ( object ) {
+ object.traverse( function ( child ) {
+ if ( child instanceof THREE.Mesh ) {
+ child.material.map = texture;
+ }
+ } );
+
+ object.position.set(589871.587, 231528.213, 725.634);
+ object.scale.multiplyScalar(500);
+ object.rotation.set(Math.PI / 2, Math.PI, 0)
+
+ viewer.scene.scene.add( object );
+
+ viewer.onGUILoaded(() => {
+ // Add entries to object list in sidebar
+ let tree = $(`#jstree_scene`);
+ let parentNode = "other";
+
+ let bunnyID = tree.jstree('create_node', parentNode, {
+ text: "Bunny Textured",
+ icon: `${Potree.resourcePath}/icons/triangle.svg`,
+ data: object
+ },
+ "last", false, false);
+ tree.jstree(object.visible ? "check_node" : "uncheck_node", bunnyID);
+
+ //tree.jstree("open_node", parentNode);
+ });
+
+ }, onProgress, onError );
+ }
+
diff --git a/examples/page.json b/examples/page.json
index 36c3bff3..25257d38 100644
--- a/examples/page.json
+++ b/examples/page.json
@@ -55,5 +55,24 @@
{"thumb": "thumbnails/vol_total.jpg", "label": "Sorvilier", "url": "showcase/sorvilier.html"},
{"thumb": "thumbnails/westend_palais.jpg", "label": "Westend Palais", "url": "showcase/westend_palais.html"},
{"thumb": "thumbnails/whitby.jpg", "label": "Whitby", "url": "showcase/whitby.html"}
+ ],
+ "thirdparty": [
+ {"thumb": "third/sitn.jpg", "label": "SITN", "url": "https://sitn.ne.ch/lidar/"},
+ {"thumb": "third/entwine.jpg", "label": "Entwine", "url": "http://potree.entwine.io/"},
+ {"thumb": "third/laspublish.jpg", "label": "laspublish", "url": "https://rapidlasso.com/laspublish/"},
+ {"thumb": "third/icgc_barcelona.jpg", "label": "Barcelona", "url": "http://betaportal.icgc.cat/wordpress/sagrada_familia_eixample_3d/"},
+ {"thumb": "third/preikestolen.jpg", "label": "", "url": "https://www.linkedin.com/pulse/open-source-advent-21-partridge-potree-bj%C3%B8rn-ove-gr%C3%B8tan/?published=t"},
+ {"thumb": "third/oklahoma_state_university.jpg", "label": "", "url": "http://geog.okstate.edu/users/mathews/potree/osuLib_nad.html"},
+ {"thumb": "third/bermuda100.jpg", "label": "Bermuda 100", "url": "http://bermuda100.ucsd.edu/mary-celestia/index.php"},
+ {"thumb": "third/pointbox.jpg", "label": "Pointbox", "url": "https://www.pointbox.xyz/"},
+ {"thumb": "third/dublin.jpg", "label": "Dublin", "url": "https://digital.ucd.ie/view/ucdlib:30462"},
+ {"thumb": "third/AHN2.jpg", "label": "AHN2", "url": "http://ahn2.pointclouds.nl/"},
+ {"thumb": "third/phoenix_lidar.jpg", "label": "Phoenix Lidar", "url": "https://www.phoenixlidar.com/sampledata/"},
+ {"thumb": "third/tatsumi_dam.jpg", "label": "Tatsumi Dam", "url": "http://www.kkapc.co.jp/potree-1.5RC/examples/apc_tatumi.html"},
+ {"thumb": "third/ara.jpg", "label": "", "url": "http://www.airborneresearch.com.au/potree/ironbank1/examples/ironbank1.html"},
+ {"thumb": "third/goldmine.jpg", "label": "", "url": "https://digitalreality.ethz.ch/goldmine/"},
+ {"thumb": "third/ricketts_sanctuary.jpg", "label": "", "url": "http://files.digitisation.unimelb.edu.au/potree/pointclouds/ricketts-test2.html"},
+ {"thumb": "third/hakea_macrorrhyncha.jpg", "label": "", "url": "http://files.digitisation.unimelb.edu.au/potree/pointclouds/hakea_macrorrhyncha.html"},
+ {"thumb": "third/wesmapping_grand_canyon.jpg", "label": "Wesmapping", "url": "http://wesmapping.com/blog/3d-visualization-of-the-grand-canyon-with-potree/"}
]
}
\ No newline at end of file
diff --git a/examples/third/AHN2.jpg b/examples/third/AHN2.jpg
new file mode 100644
index 00000000..b45b853f
Binary files /dev/null and b/examples/third/AHN2.jpg differ
diff --git a/examples/third/ara.jpg b/examples/third/ara.jpg
new file mode 100644
index 00000000..f0d26e1a
Binary files /dev/null and b/examples/third/ara.jpg differ
diff --git a/examples/third/bermuda100.jpg b/examples/third/bermuda100.jpg
new file mode 100644
index 00000000..8ff35901
Binary files /dev/null and b/examples/third/bermuda100.jpg differ
diff --git a/examples/third/dublin.jpg b/examples/third/dublin.jpg
new file mode 100644
index 00000000..e6643bea
Binary files /dev/null and b/examples/third/dublin.jpg differ
diff --git a/examples/third/entwine.jpg b/examples/third/entwine.jpg
new file mode 100644
index 00000000..bdd4021c
Binary files /dev/null and b/examples/third/entwine.jpg differ
diff --git a/examples/third/goldmine.jpg b/examples/third/goldmine.jpg
new file mode 100644
index 00000000..d03c59d3
Binary files /dev/null and b/examples/third/goldmine.jpg differ
diff --git a/examples/third/hakea_macrorrhyncha.jpg b/examples/third/hakea_macrorrhyncha.jpg
new file mode 100644
index 00000000..6b4300c6
Binary files /dev/null and b/examples/third/hakea_macrorrhyncha.jpg differ
diff --git a/examples/third/icgc_barcelona.jpg b/examples/third/icgc_barcelona.jpg
new file mode 100644
index 00000000..c1e06dc7
Binary files /dev/null and b/examples/third/icgc_barcelona.jpg differ
diff --git a/examples/third/laspublish.jpg b/examples/third/laspublish.jpg
new file mode 100644
index 00000000..53678199
Binary files /dev/null and b/examples/third/laspublish.jpg differ
diff --git a/examples/third/oklahoma_state_university.jpg b/examples/third/oklahoma_state_university.jpg
new file mode 100644
index 00000000..35fa5ab0
Binary files /dev/null and b/examples/third/oklahoma_state_university.jpg differ
diff --git a/examples/third/phoenix_lidar.jpg b/examples/third/phoenix_lidar.jpg
new file mode 100644
index 00000000..58792fdb
Binary files /dev/null and b/examples/third/phoenix_lidar.jpg differ
diff --git a/examples/third/pointbox.jpg b/examples/third/pointbox.jpg
new file mode 100644
index 00000000..930f9118
Binary files /dev/null and b/examples/third/pointbox.jpg differ
diff --git a/examples/third/preikestolen.jpg b/examples/third/preikestolen.jpg
new file mode 100644
index 00000000..288b6ea5
Binary files /dev/null and b/examples/third/preikestolen.jpg differ
diff --git a/examples/third/ricketts_sanctuary.jpg b/examples/third/ricketts_sanctuary.jpg
new file mode 100644
index 00000000..68673f59
Binary files /dev/null and b/examples/third/ricketts_sanctuary.jpg differ
diff --git a/examples/third/sitn.jpg b/examples/third/sitn.jpg
new file mode 100644
index 00000000..bc21fe7f
Binary files /dev/null and b/examples/third/sitn.jpg differ
diff --git a/examples/third/tatsumi_dam.jpg b/examples/third/tatsumi_dam.jpg
new file mode 100644
index 00000000..7cfde032
Binary files /dev/null and b/examples/third/tatsumi_dam.jpg differ
diff --git a/examples/third/wesmapping_grand_canyon.jpg b/examples/third/wesmapping_grand_canyon.jpg
new file mode 100644
index 00000000..1b16e4eb
Binary files /dev/null and b/examples/third/wesmapping_grand_canyon.jpg differ
diff --git a/gulpfile.js b/gulpfile.js
index be343e78..3e9e4dcf 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -206,6 +206,7 @@ gulp.task('examples_page', function() {
let unhandledCode = ``;
let exampleCode = ``;
let showcaseCode = ``;
+ let thirdpartyCode = ``;
{
let urls = settings.examples.map(e => e.url);
@@ -235,29 +236,33 @@ gulp.task('examples_page', function() {
}
}
- {
- for(let example of settings.examples){
- exampleCode += `
-
-