potree-core 2.0.7 → 2.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +83 -83
- package/README.md +98 -98
- package/dist/features.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/materials/point-cloud-material.d.ts +6 -0
- package/dist/potree.d.ts +1 -1
- package/package.json +59 -59
package/LICENSE
CHANGED
|
@@ -1,83 +1,83 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) Tentone
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
22
|
-
|
|
23
|
-
============
|
|
24
|
-
== POTREE ==
|
|
25
|
-
============
|
|
26
|
-
|
|
27
|
-
http://potree.org
|
|
28
|
-
|
|
29
|
-
Copyright (c) 2011-2017, Markus Schütz
|
|
30
|
-
All rights reserved.
|
|
31
|
-
|
|
32
|
-
Redistribution and use in source and binary forms, with or without
|
|
33
|
-
modification, are permitted provided that the following conditions are met:
|
|
34
|
-
|
|
35
|
-
1. Redistributions of source code must retain the above copyright notice, this
|
|
36
|
-
list of conditions and the following disclaimer.
|
|
37
|
-
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
38
|
-
this list of conditions and the following disclaimer in the documentation
|
|
39
|
-
and/or other materials provided with the distribution.
|
|
40
|
-
|
|
41
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
42
|
-
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
43
|
-
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
44
|
-
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
|
45
|
-
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
46
|
-
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
47
|
-
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
|
48
|
-
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
49
|
-
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
50
|
-
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
51
|
-
|
|
52
|
-
The views and conclusions contained in the software and documentation are those
|
|
53
|
-
of the authors and should not be interpreted as representing official policies,
|
|
54
|
-
either expressed or implied, of the FreeBSD Project.
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
=====================
|
|
58
|
-
== PLASIO / LASLAZ ==
|
|
59
|
-
=====================
|
|
60
|
-
|
|
61
|
-
http://plas.io/
|
|
62
|
-
|
|
63
|
-
The MIT License (MIT)
|
|
64
|
-
|
|
65
|
-
Copyright (c) 2014 Uday Verma, uday.karan@gmail.com
|
|
66
|
-
|
|
67
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
68
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
69
|
-
in the Software without restriction, including without limitation the rights
|
|
70
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
71
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
72
|
-
furnished to do so, subject to the following conditions:
|
|
73
|
-
|
|
74
|
-
The above copyright notice and this permission notice shall be included in
|
|
75
|
-
all copies or substantial portions of the Software.
|
|
76
|
-
|
|
77
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
78
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
79
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
80
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
81
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
82
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
83
|
-
THE SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Tentone
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
22
|
+
|
|
23
|
+
============
|
|
24
|
+
== POTREE ==
|
|
25
|
+
============
|
|
26
|
+
|
|
27
|
+
http://potree.org
|
|
28
|
+
|
|
29
|
+
Copyright (c) 2011-2017, Markus Schütz
|
|
30
|
+
All rights reserved.
|
|
31
|
+
|
|
32
|
+
Redistribution and use in source and binary forms, with or without
|
|
33
|
+
modification, are permitted provided that the following conditions are met:
|
|
34
|
+
|
|
35
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
36
|
+
list of conditions and the following disclaimer.
|
|
37
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
38
|
+
this list of conditions and the following disclaimer in the documentation
|
|
39
|
+
and/or other materials provided with the distribution.
|
|
40
|
+
|
|
41
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
42
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
43
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
44
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
|
45
|
+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
46
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
47
|
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
|
48
|
+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
49
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
50
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
51
|
+
|
|
52
|
+
The views and conclusions contained in the software and documentation are those
|
|
53
|
+
of the authors and should not be interpreted as representing official policies,
|
|
54
|
+
either expressed or implied, of the FreeBSD Project.
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
=====================
|
|
58
|
+
== PLASIO / LASLAZ ==
|
|
59
|
+
=====================
|
|
60
|
+
|
|
61
|
+
http://plas.io/
|
|
62
|
+
|
|
63
|
+
The MIT License (MIT)
|
|
64
|
+
|
|
65
|
+
Copyright (c) 2014 Uday Verma, uday.karan@gmail.com
|
|
66
|
+
|
|
67
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
68
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
69
|
+
in the Software without restriction, including without limitation the rights
|
|
70
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
71
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
72
|
+
furnished to do so, subject to the following conditions:
|
|
73
|
+
|
|
74
|
+
The above copyright notice and this permission notice shall be included in
|
|
75
|
+
all copies or substantial portions of the Software.
|
|
76
|
+
|
|
77
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
78
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
79
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
80
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
81
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
82
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
83
|
+
THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,98 +1,98 @@
|
|
|
1
|
-
# Potree Core 2.0
|
|
2
|
-
|
|
3
|
-
[](https://badge.fury.io/js/potree-core)
|
|
4
|
-
[](https://badge.fury.io/gh/tentone%2Fpotree-core)
|
|
5
|
-
|
|
6
|
-
- This project was originally based on [Potree Viewer 1.6](https://github.com/potree/potree) and is now since version 2.0 based on the [shiukaheng fork](https://github.com/shiukaheng/potree-loader) of the [Potree-Loader](https://github.com/pnext/three-loader).
|
|
7
|
-
- Potree is a web based pouint cloud visualizer project created by Markus Schütz.
|
|
8
|
-
- This project contains only the main parts of the potree project adapted to be more easily used as a independent library, the code was adapted from the original repositorys.
|
|
9
|
-
- Support for pointclouds from LAS, LAZ, Binary files.
|
|
10
|
-
- Some features require support for the following GL extensions
|
|
11
|
-
- EXT_frag_depth, WEBGL_depth_texture, OES_vertex_array_object
|
|
12
|
-
|
|
13
|
-
## Demo
|
|
14
|
-
- Live demo at https://tentone.github.io/potree-core/
|
|
15
|
-
- Double click the models to raycast the scene and create marker points.
|
|
16
|
-
|
|
17
|
-
<img src="https://raw.githubusercontent.com/tentone/potree-core/master/screenshot.png" width="700">
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
## Example
|
|
21
|
-
- The project can be build running the commands `npm install` and `npm run build`.
|
|
22
|
-
- Download the potree build from the build folder or add it to your project using NPM.
|
|
23
|
-
- Include it alonside the worker folder in your project (can be found on the source folder).
|
|
24
|
-
- The build is a ES module, that can be imported to other projects, threejs should be available as a peer dependency.
|
|
25
|
-
- Bellow its a fully functional example of how to use this wrapper to load potree point clouds to a three.js project
|
|
26
|
-
|
|
27
|
-
```javascript
|
|
28
|
-
const scene = new Scene();
|
|
29
|
-
const camera = new PerspectiveCamera(60, 1, 0.1, 10000);
|
|
30
|
-
|
|
31
|
-
const canvas = document.getElementById("canvas");
|
|
32
|
-
|
|
33
|
-
const renderer = new WebGLRenderer({canvas:canvas});
|
|
34
|
-
|
|
35
|
-
const geometry = new BoxGeometry(1, 1, 1);
|
|
36
|
-
const material = new MeshBasicMaterial({color: 0x00ff00});
|
|
37
|
-
const cube = new Mesh(geometry, material);
|
|
38
|
-
scene.add(cube);
|
|
39
|
-
|
|
40
|
-
const controls = new OrbitControls(camera, canvas);
|
|
41
|
-
camera.position.z = 10;
|
|
42
|
-
|
|
43
|
-
const pointClouds = [];
|
|
44
|
-
|
|
45
|
-
const baseUrl = "data/test/";
|
|
46
|
-
const potree = new Potree();
|
|
47
|
-
potree.loadPointCloud("cloud.js", url => `${baseUrl}${url}`,).then(function(pco) {
|
|
48
|
-
scene.add(pco);
|
|
49
|
-
pointClouds.push(pco);
|
|
50
|
-
});
|
|
51
|
-
|
|
52
|
-
function loop()
|
|
53
|
-
{
|
|
54
|
-
potree.updatePointClouds(pointClouds, camera, renderer);
|
|
55
|
-
|
|
56
|
-
controls.update();
|
|
57
|
-
renderer.render(scene, camera);
|
|
58
|
-
|
|
59
|
-
requestAnimationFrame(loop);
|
|
60
|
-
};
|
|
61
|
-
loop();
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
## Notes
|
|
65
|
-
- Since potree-core is meant to be used as library and not as a full software as potree some features are not available.
|
|
66
|
-
- EDL shading is not supported by potree core.
|
|
67
|
-
- Removed classification and clipping functionality.
|
|
68
|
-
- Removed Arena 4D point cloud support.
|
|
69
|
-
- Removed Entwine Point Tile file support.
|
|
70
|
-
- GUI elements were removed from the library
|
|
71
|
-
- PotreeViewer
|
|
72
|
-
- Controls, Input, GUI, Tools
|
|
73
|
-
- Anotations, Actions, ProfileRequest
|
|
74
|
-
- Potree.startQuery, Potree.endQuery and Potree.resolveQueries
|
|
75
|
-
- Potree.timerQueries
|
|
76
|
-
- Potree.MOUSE, Potree.CameraMode
|
|
77
|
-
- PotreeRenderer, RepRenderer, Potree.Renderer
|
|
78
|
-
- JQuery, TWEEN and Proj4 dependencies
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
## Potree Converter
|
|
82
|
-
- Use the (Potree Converter)[https://github.com/potree/PotreeConverter/releases] tool to create point cloud data from LAS, ZLAS or BIN point cloud files
|
|
83
|
-
- Potree Converter 1.8 creates a multi file structure with each node as an individual file.
|
|
84
|
-
- Potree Converter 2.1 creates a single file for all points and separates files for hierarchy index, its faster to create files. Requires a HTTP server configured for file streaming.
|
|
85
|
-
- Tool to create hierarquical structure used for point-cloud rendering using potree-core.
|
|
86
|
-
- There are two main versions 2.1 witch generates 4 contained files with point data, hierarchy,
|
|
87
|
-
- To generate a folder output from a input file run the command `.\PotreeConverter '..\input.laz' -o ../output`
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
### TXT2LAS
|
|
91
|
-
- The potree converter tool only supports las and laz files, so textural file formats such as .pts, .xyz, have to be first converted into a supported format.
|
|
92
|
-
- The TXT2LAS tool from the (LASTools)[https://github.com/LAStools/LAStools] repository can be used for this effect.
|
|
93
|
-
- To run the tool use the command `.\txt2las64 -i input.pts -ipts -parse xyziRGB -set_scale 0.001 0.001 0.001 -set_version 1.4 -o output.laz`
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
### To Do
|
|
97
|
-
- Supports logarithmic depth buffer (just by enabling it on the threejs renderer), useful for large scale visualization.
|
|
98
|
-
- Point clouds are automatically updated, frustum culling is used to avoid unnecessary updates (better update performance for multiple point clouds).
|
|
1
|
+
# Potree Core 2.0
|
|
2
|
+
|
|
3
|
+
[](https://badge.fury.io/js/potree-core)
|
|
4
|
+
[](https://badge.fury.io/gh/tentone%2Fpotree-core)
|
|
5
|
+
|
|
6
|
+
- This project was originally based on [Potree Viewer 1.6](https://github.com/potree/potree) and is now since version 2.0 based on the [shiukaheng fork](https://github.com/shiukaheng/potree-loader) of the [Potree-Loader](https://github.com/pnext/three-loader).
|
|
7
|
+
- Potree is a web based pouint cloud visualizer project created by Markus Schütz.
|
|
8
|
+
- This project contains only the main parts of the potree project adapted to be more easily used as a independent library, the code was adapted from the original repositorys.
|
|
9
|
+
- Support for pointclouds from LAS, LAZ, Binary files.
|
|
10
|
+
- Some features require support for the following GL extensions
|
|
11
|
+
- EXT_frag_depth, WEBGL_depth_texture, OES_vertex_array_object
|
|
12
|
+
|
|
13
|
+
## Demo
|
|
14
|
+
- Live demo at https://tentone.github.io/potree-core/
|
|
15
|
+
- Double click the models to raycast the scene and create marker points.
|
|
16
|
+
|
|
17
|
+
<img src="https://raw.githubusercontent.com/tentone/potree-core/master/screenshot.png" width="700">
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
## Example
|
|
21
|
+
- The project can be build running the commands `npm install` and `npm run build`.
|
|
22
|
+
- Download the potree build from the build folder or add it to your project using NPM.
|
|
23
|
+
- Include it alonside the worker folder in your project (can be found on the source folder).
|
|
24
|
+
- The build is a ES module, that can be imported to other projects, threejs should be available as a peer dependency.
|
|
25
|
+
- Bellow its a fully functional example of how to use this wrapper to load potree point clouds to a three.js project
|
|
26
|
+
|
|
27
|
+
```javascript
|
|
28
|
+
const scene = new Scene();
|
|
29
|
+
const camera = new PerspectiveCamera(60, 1, 0.1, 10000);
|
|
30
|
+
|
|
31
|
+
const canvas = document.getElementById("canvas");
|
|
32
|
+
|
|
33
|
+
const renderer = new WebGLRenderer({canvas:canvas});
|
|
34
|
+
|
|
35
|
+
const geometry = new BoxGeometry(1, 1, 1);
|
|
36
|
+
const material = new MeshBasicMaterial({color: 0x00ff00});
|
|
37
|
+
const cube = new Mesh(geometry, material);
|
|
38
|
+
scene.add(cube);
|
|
39
|
+
|
|
40
|
+
const controls = new OrbitControls(camera, canvas);
|
|
41
|
+
camera.position.z = 10;
|
|
42
|
+
|
|
43
|
+
const pointClouds = [];
|
|
44
|
+
|
|
45
|
+
const baseUrl = "data/test/";
|
|
46
|
+
const potree = new Potree();
|
|
47
|
+
potree.loadPointCloud("cloud.js", url => `${baseUrl}${url}`,).then(function(pco) {
|
|
48
|
+
scene.add(pco);
|
|
49
|
+
pointClouds.push(pco);
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
function loop()
|
|
53
|
+
{
|
|
54
|
+
potree.updatePointClouds(pointClouds, camera, renderer);
|
|
55
|
+
|
|
56
|
+
controls.update();
|
|
57
|
+
renderer.render(scene, camera);
|
|
58
|
+
|
|
59
|
+
requestAnimationFrame(loop);
|
|
60
|
+
};
|
|
61
|
+
loop();
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## Notes
|
|
65
|
+
- Since potree-core is meant to be used as library and not as a full software as potree some features are not available.
|
|
66
|
+
- EDL shading is not supported by potree core.
|
|
67
|
+
- Removed classification and clipping functionality.
|
|
68
|
+
- Removed Arena 4D point cloud support.
|
|
69
|
+
- Removed Entwine Point Tile file support.
|
|
70
|
+
- GUI elements were removed from the library
|
|
71
|
+
- PotreeViewer
|
|
72
|
+
- Controls, Input, GUI, Tools
|
|
73
|
+
- Anotations, Actions, ProfileRequest
|
|
74
|
+
- Potree.startQuery, Potree.endQuery and Potree.resolveQueries
|
|
75
|
+
- Potree.timerQueries
|
|
76
|
+
- Potree.MOUSE, Potree.CameraMode
|
|
77
|
+
- PotreeRenderer, RepRenderer, Potree.Renderer
|
|
78
|
+
- JQuery, TWEEN and Proj4 dependencies
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
## Potree Converter
|
|
82
|
+
- Use the (Potree Converter)[https://github.com/potree/PotreeConverter/releases] tool to create point cloud data from LAS, ZLAS or BIN point cloud files
|
|
83
|
+
- Potree Converter 1.8 creates a multi file structure with each node as an individual file.
|
|
84
|
+
- Potree Converter 2.1 creates a single file for all points and separates files for hierarchy index, its faster to create files. Requires a HTTP server configured for file streaming.
|
|
85
|
+
- Tool to create hierarquical structure used for point-cloud rendering using potree-core.
|
|
86
|
+
- There are two main versions 2.1 witch generates 4 contained files with point data, hierarchy,
|
|
87
|
+
- To generate a folder output from a input file run the command `.\PotreeConverter '..\input.laz' -o ../output`
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
### TXT2LAS
|
|
91
|
+
- The potree converter tool only supports las and laz files, so textural file formats such as .pts, .xyz, have to be first converted into a supported format.
|
|
92
|
+
- The TXT2LAS tool from the (LASTools)[https://github.com/LAStools/LAStools] repository can be used for this effect.
|
|
93
|
+
- To run the tool use the command `.\txt2las64 -i input.pts -ipts -parse xyziRGB -set_scale 0.001 0.001 0.001 -set_version 1.4 -o output.laz`
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
### To Do
|
|
97
|
+
- Supports logarithmic depth buffer (just by enabling it on the threejs renderer), useful for large scale visualization.
|
|
98
|
+
- Point clouds are automatically updated, frustum culling is used to avoid unnecessary updates (better update performance for multiple point clouds).
|
package/dist/features.d.ts
CHANGED