1576 Commits

Author SHA1 Message Date
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
m-schuetz
deee81a6a1 new format loader fixes 2020-02-29 19:33:20 +01:00
m-schuetz
b8eff2fe66 update/improve hierarchical sliders for src id and gps time 2020-02-25 17:47:26 +01:00
m-schuetz
578e0c50ee fix shadow mapping 2020-02-24 18:51:02 +01:00
m-schuetz
b845e49bda add 360 example (WIP, not working yet) 2020-02-22 16:57:15 +01:00
m-schuetz
fc021ecdf6 update examples; some fixes including load/save project 2020-02-22 16:44:51 +01:00
Markus Schütz
0d56330b36
Merge pull request #625 from BiosoftCL/feature/add-spanish-translation
Added spanish translation
2020-02-22 14:35:44 +01:00
Markus Schütz
7416c388b9
Merge branch 'develop' into feature/add-spanish-translation 2020-02-22 14:35:35 +01:00
Markus Schütz
379da9561e
Merge pull request #696 from NiViggiano/navcube-patch-1
Fix NavCube behavior when invisible
2020-02-22 13:41:48 +01:00
Markus Schütz
e9816487de
Update NavigationCube.js 2020-02-22 13:41:23 +01:00
Markus Schütz
7ae514830d
Merge pull request #751 from lightheaded/develop
Remove requirement for global gulp and rollup
2020-02-22 13:33:44 +01:00
m-schuetz
30dbde1a72 ... 2020-02-22 13:29:57 +01:00
Markus Schütz
769d115add
Merge pull request #739 from rjpals/filter-improvements-redo
Filtering improvements
2020-02-21 13:34:43 +01:00
Markus Schütz
89f4ac0ed0
Update EptLaszipDecoderWorker.js 2020-02-21 13:32:54 +01:00
Markus Schütz
0b4896979a
Update sidebar.js 2020-02-21 13:32:08 +01:00
Markus Schütz
15b040532c
Update viewer.js 2020-02-21 13:32:06 +01:00
Markus Schütz
57dc4516a0
Update LaszipLoader.js 2020-02-21 13:32:03 +01:00
m-schuetz
fd0f7bcdad improve 360 images 2020-02-17 16:15:22 +01:00
m-schuetz
c3f085140f fix rgba in profile view 2020-02-17 13:00:11 +01:00
m-schuetz
43f53d1927 360 image improvements 2020-02-04 15:54:34 +01:00
Markus Schütz
3f8652d526
Merge pull request #761 from potree/img_att
Img att
2020-02-04 12:08:57 +01:00
m-schuetz
adeb44b7bb stop showing extra attribute panels for non-extra attributes 2020-02-04 12:06:58 +01:00
m-schuetz
b3c4b61847 some promisifications; fix coordinate precision in profile window 2020-02-04 11:59:41 +01:00
m-schuetz
578bfce7a9 extra attribute fixes; material save/load fixes 2020-02-03 16:26:41 +01:00
m-schuetz
d02655e6e7 more profile window fixes 2020-02-01 19:25:51 +01:00
m-schuetz
7bacbb921f WIP, extra attributes 2020-02-01 15:31:02 +01:00