itowns 2.44.3-next.37 → 2.44.3-next.38
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/dist/debug.js +1 -1
- package/dist/debug.js.map +1 -1
- package/dist/itowns.js +1 -1
- package/dist/itowns.js.map +1 -1
- package/examples/3dtiles_loader.html +2 -2
- package/examples/effects_stereo.html +2 -2
- package/examples/misc_collada.html +2 -2
- package/examples/view_3d_map_webxr.html +3 -1
- package/examples/view_multi_25d.html +2 -2
- package/lib/Layer/OGC3DTilesLayer.js +4 -1
- package/lib/ThreeExtended/libs/ktx-parse.module.js +310 -274
- package/lib/ThreeExtended/loaders/DRACOLoader.js +3 -2
- package/lib/ThreeExtended/loaders/GLTFLoader.js +6 -3
- package/lib/ThreeExtended/loaders/KTX2Loader.js +144 -60
- package/lib/ThreeExtended/math/ColorSpaces.js +59 -0
- package/package.json +5 -5
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
<script type="importmap">
|
|
51
51
|
{
|
|
52
52
|
"imports": {
|
|
53
|
-
"three": "https://cdn.jsdelivr.net/npm/three@0.
|
|
54
|
-
"three/addons/": "https://cdn.jsdelivr.net/npm/three@0.
|
|
53
|
+
"three": "https://cdn.jsdelivr.net/npm/three@0.170.0/build/three.module.js",
|
|
54
|
+
"three/addons/": "https://cdn.jsdelivr.net/npm/three@0.170.0/examples/jsm/"
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
</script>
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
<script type="importmap">
|
|
24
24
|
{
|
|
25
25
|
"imports": {
|
|
26
|
-
"three": "https://cdn.jsdelivr.net/npm/three@0.
|
|
27
|
-
"three/addons/": "https://cdn.jsdelivr.net/npm/three@0.
|
|
26
|
+
"three": "https://cdn.jsdelivr.net/npm/three@0.170.0/build/three.module.js",
|
|
27
|
+
"three/addons/": "https://cdn.jsdelivr.net/npm/three@0.170.0/examples/jsm/"
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
</script>
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
<script type="importmap">
|
|
26
26
|
{
|
|
27
27
|
"imports": {
|
|
28
|
-
"three": "https://cdn.jsdelivr.net/npm/three@0.
|
|
29
|
-
"three/addons/": "https://cdn.jsdelivr.net/npm/three@0.
|
|
28
|
+
"three": "https://cdn.jsdelivr.net/npm/three@0.170.0/build/three.module.js",
|
|
29
|
+
"three/addons/": "https://cdn.jsdelivr.net/npm/three@0.170.0/examples/jsm/"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
</script>
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<script type="importmap">
|
|
15
15
|
{
|
|
16
16
|
"imports": {
|
|
17
|
-
"three/addons/": "https://cdn.jsdelivr.net/npm/three@0.
|
|
17
|
+
"three/addons/": "https://cdn.jsdelivr.net/npm/three@0.170.0/examples/jsm/"
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
</script>
|
|
@@ -43,6 +43,8 @@
|
|
|
43
43
|
const view = new itowns.GlobeView(viewerDiv, placement, {
|
|
44
44
|
webXR: { scale: 0.005 },
|
|
45
45
|
});
|
|
46
|
+
// Temporary workaround to https://github.com/iTowns/itowns/issues/2473
|
|
47
|
+
view.scene.matrixWorldAutoUpdate = true;
|
|
46
48
|
|
|
47
49
|
// Instantiate three's VR Button
|
|
48
50
|
const vrButton = VRButton.createButton(view.renderer);
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
<script type="importmap">
|
|
18
18
|
{
|
|
19
19
|
"imports": {
|
|
20
|
-
"three": "https://cdn.jsdelivr.net/npm/three@0.
|
|
21
|
-
"three/addons/": "https://cdn.jsdelivr.net/npm/three@0.
|
|
20
|
+
"three": "https://cdn.jsdelivr.net/npm/three@0.170.0/build/three.module.js",
|
|
21
|
+
"three/addons/": "https://cdn.jsdelivr.net/npm/three@0.170.0/examples/jsm/"
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
</script>
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import * as THREE from 'three';
|
|
2
|
-
import { TilesRenderer
|
|
2
|
+
import { TilesRenderer } from '3d-tiles-renderer';
|
|
3
|
+
import { GLTFStructuralMetadataExtension, GLTFMeshFeaturesExtension, GLTFCesiumRTCExtension, CesiumIonAuthPlugin, GoogleCloudAuthPlugin, ImplicitTilingPlugin
|
|
4
|
+
// eslint-disable-next-line import/no-unresolved
|
|
5
|
+
} from '3d-tiles-renderer/plugins';
|
|
3
6
|
import GeometryLayer from "./GeometryLayer.js";
|
|
4
7
|
import iGLTFLoader from "../Parser/iGLTFLoader.js";
|
|
5
8
|
import { DRACOLoader } from "../ThreeExtended/loaders/DRACOLoader.js";
|