1404 Commits

Author SHA1 Message Date
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
m-schuetz
8a354118c0 update prototype loader for new format 2020-04-15 21:22:23 +02: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
m-schuetz
f825fcca0e work on image 360 and fixing extra attribute stuff, e.g. in profiles 2020-01-31 15:47:49 +01:00
m-schuetz
1909f206eb intermediate fix for geopackage loader for epsg2056 2020-01-16 15:46:23 +01:00
m-schuetz
d8becc5313 fix oriented images demo 2020-01-15 15:07:51 +01:00
m-schuetz
72748db38f make azimuth tool marker sizes adaptive 2020-01-14 13:22:51 +01:00
m-schuetz
79839bd646 add support for normal attributes with names "NormalX, NormalY, NormalZ" 2020-01-14 12:32:28 +01:00
m-schuetz
feb994129e potential fix for #716 2020-01-13 16:51:55 +01:00
m-schuetz
acc3ee7a11 add dispose 2020-01-12 19:46:24 +01:00
m-schuetz
a2851229d9 more single file stuff 2020-01-11 21:36:52 +01:00
m-schuetz
3fd3650ec3 fix helicopter controls 2020-01-07 17:18:45 +01:00
m-schuetz
1d64d63ba6 experimenting 2020-01-07 17:11:23 +01:00
m-schuetz
c4ea93cc82 experimenting with range requests 2020-01-05 20:42:17 +01:00
Toomas Välja
38d670b6e7 Add a missing newline
Took 30 seconds
2020-01-03 13:12:07 +02:00
Toomas Välja
4309cdcc35 Remove requirement for global gulp and rollup
Requiring global installation of any tools is not the best practice, as it can
introduce situations when one project requires one version of e.g. gulp and
another application requires another version. To combat that, npm provides a great
way to encapsulate dependencies inside `node_modules` directory and includes all
binaries in PATH whenever `npm ...` commands are ran.

In this commit, `rollup` was added as a dependency to `package.json` so that global
installation is not required. Additionally, npm scripts for common operations were
added: `npm start` for development and `npm run build` for one-time building.

README was updated to match the updates.

Took 5 minutes
2020-01-03 13:11:36 +02:00
m-schuetz
b3dd0919f7 implement classification invert; fix color attribute; add min size slider 2019-12-30 16:37:27 +01:00
Ryan Pals
c473909322 Fix syntax errors 2019-12-10 09:57:20 -06:00
Ryan Pals
3ebe16df5f Add Point source ID filtering, fix GPS time filtering for EPT-LAS datasets 2019-12-10 09:43:54 -06:00
Markus Schütz
eefae8a62f
Update README.md 2019-11-10 13:21:46 +01:00
Markus Schütz
c2e3b543a6
Update README.md 2019-11-10 09:38:31 +01:00
m-schuetz
61b7204e39 update readme 2019-11-10 09:36:11 +01:00
m-schuetz
ca971137a7 fix annotation hierarchy loading 2019-11-09 20:03:14 +01:00
m-schuetz
411ae82f11 fix compass 2019-11-09 19:33:36 +01:00
m-schuetz
14e2ef8f65 ... 2019-11-09 19:26:40 +01:00