Ben Arnett ce43f8a60a Fix for THREE.Matrix3: .getInverse() can't invert
This patches the condition where d3 scaleX invert results in 0 radius.

Exact console warning for reference:
THREE.Matrix3: .getInverse() can't invert matrix, determinant is 0

When the point's scale is set to 0, 0, 0, the position becomes 0, 0, 0,
and ultimately, all of the matrix elements become 0, which is invalid.

Specifically for Matrix3, ThreeJS can't invert something with all zeros.
Here, we avoid this mishap by simply making the radius super duper tiny.
0.000000001 is pretty close to 0, and it won't make Three flip out.

TODO: Fix d3 scaleX invert calls so we don't get a bunch of bad returns.
2020-04-30 08:18:57 -05:00
2020-02-29 19:33:20 +01:00
2019-11-09 15:52:44 +01:00
2020-01-05 20:42:17 +01:00
2020-02-29 19:33:20 +01:00
2020-01-11 21:36:52 +01:00

About

Potree is a free open-source WebGL based point cloud renderer for large point clouds. It is based on the TU Wien Scanopy project and it was part of the Harvest4D Project.

Newest information and work in progress is usually available on twitter

Contact: Markus Schütz (mschuetz@potree.org)

Reference: Potree: Rendering Large Point Clouds in Web Browsers

Getting Started

Build and Run

Install node.js

Install all dependencies, as specified in package.json:

npm install

Use npm run build to create ./build/potree.

Use the npm start command to

  • create ./build/potree
  • watch for changes to the source code and automatically create a new build on change
  • start a web server at localhost:1234.

Go to http://localhost:1234/examples/ to test the examples.

Convert

Download PotreeConverter and run it like this:

./PotreeConverter.exe C:/pointclouds/data.las -o C:/pointclouds/data_converted

Copy the converted directory into <potreeDirectory>/pointclouds/data_converted. Then, duplicate and rename one of the examples and modify the path in the html file to your own point cloud.

Downloads

PotreeConverter source and Win64 binaries

Examples

Take a look at the potree showcase for more examples.

Virtual RealityOriented ImagesGeopackageClassificationsCamera AnimationLoad Project
ToolbarMatcapBasic ViewerHeidentorLionLion LAS
Lion LAZEPTEPT BinaryEPT zstandardClipping VolumeCA13
Elevation ProfileMeasurementsMeshesMultiple Point CloudsFeatures (Sorvilier)Features (CA13)
AnnotationsHierarchical AnnotationsAnimation PathShapefilesCesium CA13Cesium Retz
Cesium SorvilierCustom Sidebar SectionEmbedded IframeGradient Colors

Donations

We would like to thank our sponsors for their financial contributions that keep this project up and running!

Diamond
€ 15,000+
         
Gold
€ 10,000+
Silver
€ 5,000+
Bronze
€ 1,000+
       
     

Credits

  • The multi-res-octree algorithms used by this viewer were developed at the Vienna University of Technology by Michael Wimmer and Claus Scheiblauer as part of the Scanopy Project.
  • Three.js, the WebGL 3D rendering library on which potree is built.
  • plas.io point cloud viewer. LAS and LAZ support have been taken from the laslaz.js implementation of plas.io. Thanks to Uday Verma and Howard Butler for this!
  • Harvest4D Potree currently runs as Master Thesis under the Harvest4D Project
  • Christian Boucheny (EDL developer) and Daniel Girardeau-Montaut (CloudCompare). The EDL shader was adapted from the CloudCompare source code!
  • Martin Isenburg, Georepublic, Veesus, Sigeom Sa, SITN, LBI ArchPro, Pix4D as well as all the contributers to potree and PotreeConverter and many more for their support.
Description
No description provided
Readme 131 MiB
Languages
JavaScript 71%
Lasso 28.5%
CSS 0.2%
HTML 0.2%
GLSL 0.1%