1451 Commits

Author SHA1 Message Date
m-schuetz
4cc31281d7 update new format loader 2020-07-28 14:46:06 +02:00
m-schuetz
8f24daeccd load mn/max range from metadata 2020-07-21 16:10:02 +02:00
m-schuetz
7d71b2150b fix return nr rendering; exlcude position from selectable attributes 2020-07-11 17:04:00 +02:00
m-schuetz
c9650dd3e6 generatorify hierarchy loader (not active) 2020-07-03 13:14:48 +02:00
m-schuetz
2ef8bd37ce update proj4; ignore projection if it throws error 2020-06-28 12:34:17 +02:00
m-schuetz
24e9d0877d update new format loader 2020-06-14 19:16:13 +02:00
m-schuetz
6208769b45 load arbitrary attributes (WIP) 2020-06-10 18:16:51 +02:00
m-schuetz
4aac6cc94a prevent dbl click if zoomed to 360. load previous controls on unfocus. add image360 entries to sidebar 2020-05-28 16:31:56 +02:00
m-schuetz
47edbce440 fix #826 2020-05-25 13:20:48 +02:00
m-schuetz
8dec0b6367 Merge branch 'develop' of https://github.com/potree/potree into develop 2020-05-22 16:18:03 +02:00
m-schuetz
c7bfbadae5 switch to DataView. Will be faster in Firefox 78. new file format loader fix 2020-05-22 16:17:48 +02:00
potree
b53b57680e
Update README.md 2020-05-22 08:45:11 +02:00
potree
2594f44891
Update FUNDING.yml 2020-05-22 08:15:49 +02:00
potree
56789a6ac3
Create FUNDING.yml 2020-05-22 08:15:03 +02:00
m-schuetz
b5ca0241b8 update new format loader 2020-05-21 15:59:19 +02:00
m-schuetz
2fed8dbdb8 increase maximum zoom depth into oriented images 2020-05-18 18:05:44 +02:00
m-schuetz
abde7f1eb5 update examples and readme; polishing & minor fixes 2020-05-16 16:24:12 +02:00
Markus Schütz
6c4db70939
Merge pull request #816 from midnight-dev/matrix-fixes
Fixes for Matrix3 / Matrix4 .getInverse() Warnings - Clipping & Height Profiling
2020-05-16 14:10:25 +02:00
Ben Arnett
91f05b7c02 Revert to Markus' determinant check
Looks better. But need to check performance implications down the road.
2020-05-16 06:37:17 -05:00
Ben Arnett
522b905337 Change so Matrix4 determinant isn't computed twice 2020-05-16 06:12:18 -05:00
Ben Arnett
8d3adabca6 Minor formatting tweak: profile.js 2020-05-16 05:55:28 -05:00
m-schuetz
170a77182c fix "Measuring Leaves Phantom Angle #803", by @easilyBaffled 2020-05-16 12:46:33 +02:00
Markus Schütz
bd29529d2b
Update viewer.js
let's filter out degenerate boxes entirely.
2020-05-16 12:34:06 +02:00
Markus Schütz
6bc9595e69
Update profile.js
instead of using an epsilon, I'd hide the sphere entirely if radius === 0
2020-05-16 12:32:52 +02:00
m-schuetz
cc51ad345c added missing attribute name mappings according to #783, @runetvilum 2020-05-15 13:13:35 +02:00
m-schuetz
4dc993d420 ... 2020-05-15 12:58:59 +02:00
Markus Schütz
a469942fc5
Merge pull request #809 from midnight-dev/security-fixes
Security Fixes, Prepare Package.json for Version 1.7
2020-05-15 12:56:18 +02:00
Ben Arnett
9ca1c7b8fc Reverted package lock as requested
This reverts the version to 0.0.1 and _all_ security fixes.
2020-05-14 14:22:12 -05:00
Ben Arnett
06f965ffaa Add beta suffix to Potree 1.7
To be removed after the official release of 1.7 stable / master
2020-05-14 11:15:25 -05:00
Ben Arnett
ac4fff0115 Bump Potree to 1.7 2020-05-14 11:12:34 -05:00
m-schuetz
fc3ad017fc finish 360 demo 2020-05-12 16:18:34 +02:00
Markus Schütz
8c1dee79a3
Merge pull request #791 from mccarthyryanc/develop
Fixing azimuth calculations on EPT sources and adding EPSG defs
2020-05-12 13:31:40 +02:00
Markus Schütz
f0405c56b0
Merge pull request #808 from midnight-dev/webgl-improvements
WebGL Improvements to Fix #807
2020-05-12 13:17:40 +02:00
Markus Schütz
11a7f7e6bc
Update profile.js
removing extension initializations from profile.js, since the profile doesn't need this extensions anyway.
2020-05-12 13:15:58 +02:00
Ben Arnett
30d947915f Update package.json and lock file for version 1.7 2020-05-11 23:26:54 -05:00
m-schuetz
d8abe2721f fix #775, zoom in while start dragging with earth controls 2020-05-11 17:18:07 +02:00
m-schuetz
1ba46afc60 fix the fix... 2020-05-11 14:33:32 +02:00
m-schuetz
47a27901bd fix GPU memory leaks #628 2020-05-11 14:31:59 +02:00
m-schuetz
b45d532514 fix north vector #796; provided by @ilisalis 2020-05-11 13:14:37 +02:00
Markus Schütz
7d063cf12c
Merge pull request #800 from midnight-dev/develop
Resolve Potree Crash When Selecting Level of Detail - Fixes #798
2020-05-11 13:04:17 +02:00
Ben Arnett
67591cd8fd Fix for many security vulnerabilities (2020-04-30)
90+ severe exploits, almost 400 total security issues were resolved.
This is somewhat expected for ~6700 packages worth of dependencies.

TODO:
Consider removing lock file so NPM always installs updated dependencies.
2020-04-30 12:10:00 -05:00
Ben Arnett
03882a1d5c Maintenance update on NPM file package.json
This raises the package.json version above 1.6.0 (the stable release).
Some relevant keywords were added for better search results.
Also, gulp-util isn't used anywhere, and it's officially deprecated.
It should be removed as a dependency.
2020-04-30 12:10:00 -05:00
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
Ben Arnett
16b05186fe Fix for THREE.Matrix4: .getInverse() can't invert
This patches the condition where first 4 Matrix4 elements are 0.

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

This sometimes occurs with measurements. These elements will always be
factored with the other elements when getInverse() is called,
meaning the result will be 0 (an invalid state with no inverse).
In these cases, ThreeJS will return an identity Matrix4. We can sidestep
a bunch of math, saving CPU cycles, by checking these 4 values.
If all are 0 or don't exist, the determinant will always be 0.

TODO: Eventually, we should figure out how to prevent invalid Matrix4s.
For now, this is better than wasting CPU and forcing Three to help us.
2020-04-30 08:18:57 -05:00
Ben Arnett
e5f838a514 Enable WEBGL_color_buffer_float extension
Increase portability & fix warning messages.
When WebGL 2 comes, use EXT_color_buffer_float.
Also removed duplicate EXT_frag_depth call.
2020-04-30 08:17:02 -05:00
Ben Arnett
af0c67e9e1 Removed the unused setProfile() method
This has the same name as the ProfileWindowController, but goes unused.
Only calls render() anyway, and hasn't changed in 2 years.
Use the controller to actually set profiles.
2020-04-30 08:17:01 -05:00
Ben Arnett
38f69ef1fc Don't render() profile on resize when closed 2020-04-30 08:17:00 -05:00
Ben Arnett
54edcbcac0 Fix potree/potree#798 - Crash related to LOD
When viewing any point cloud's Level of Detail with fixed point sizes,
a fatal crash would occur due to inconsistencies in the vertex shader.
2020-04-30 08:07:11 -05:00
m-schuetz
8a354118c0 update prototype loader for new format 2020-04-15 21:22:23 +02:00
Ryan McCarthy
b223579e0d adding check for EPSG string in projection of azimuth calculation. Adding some EPSG proj4 defs. 2020-04-15 08:43:48 -07:00