@jdultra/threedtiles 10.1.7 → 10.1.9
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/README.md
CHANGED
|
@@ -6,6 +6,11 @@
|
|
|
6
6
|
|
|
7
7
|
A faster 3DTiles viewer for three.js, now with OGC3DTiles 1.1 support
|
|
8
8
|
|
|
9
|
+
## sample getting started projects
|
|
10
|
+
[Getting started vanilla js](https://drive.google.com/file/d/14lipb5eUqfad-n7EUgXuXul-drPdLifV/view?usp=sharing)
|
|
11
|
+
|
|
12
|
+
[Getting started react-three-fiber](https://drive.google.com/file/d/1C102qriCsnra9EUbb8WzO4jZStp-eEah/view?usp=sharing)
|
|
13
|
+
|
|
9
14
|
## Demos
|
|
10
15
|
|
|
11
16
|
[Google Tiles overlay](https://www.jdultra.com/overlay/index.html)
|
|
@@ -72,13 +77,6 @@ function animate() {
|
|
|
72
77
|
It is discouraged to call the update functions outside the render loop in a setInterval for example.
|
|
73
78
|
While that may work fine on desktop, mobile browsers tend to block an entire frame when a timeout triggers in it.
|
|
74
79
|
|
|
75
|
-
Here is a simple project : [Getting started](https://drive.google.com/file/d/14lipb5eUqfad-n7EUgXuXul-drPdLifV/view?usp=sharing)
|
|
76
|
-
|
|
77
|
-
Unzip and run :
|
|
78
|
-
|
|
79
|
-
> npm install
|
|
80
|
-
|
|
81
|
-
> npm run dev
|
|
82
80
|
|
|
83
81
|
## Mesh to 3DTiles Converter
|
|
84
82
|
|
|
@@ -17,10 +17,10 @@ Each file is provided in two variations:
|
|
|
17
17
|
* **Default:** Latest stable builds, tracking the project's [master branch](https://github.com/google/draco).
|
|
18
18
|
* **glTF:** Builds targeted by the [glTF mesh compression extension](https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_draco_mesh_compression), tracking the [corresponding Draco branch](https://github.com/google/draco/tree/gltf_2.0_draco_extension).
|
|
19
19
|
|
|
20
|
-
Either variation may be used with `
|
|
20
|
+
Either variation may be used with `DRACOLoader`:
|
|
21
21
|
|
|
22
22
|
```js
|
|
23
|
-
var dracoLoader = new
|
|
23
|
+
var dracoLoader = new DRACOLoader();
|
|
24
24
|
dracoLoader.setDecoderPath('path/to/decoders/');
|
|
25
25
|
dracoLoader.setDecoderConfig({type: 'js'}); // (Optional) Override detection of WASM support.
|
|
26
26
|
```
|