@jdultra/threedtiles 6.0.0 → 6.0.2

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
@@ -34,7 +34,16 @@ setInterval(function () {
34
34
  }, 20);
35
35
  ```
36
36
 
37
- Currently, the library is limmited to B3DM files.
37
+ The library is limmited to B3DM and glb/gltf tiles.
38
+
39
+ Here is a simple project : [Getting started](https://drive.google.com/file/d/1kJ-yfYmy8ShOMMPPXgqW2gMgGkLOIidf/view?usp=share_link)
40
+
41
+ Unzip and run :
42
+
43
+ > npm install
44
+
45
+ > npm run dev
46
+
38
47
 
39
48
  ## Features
40
49
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jdultra/threedtiles",
3
- "version": "6.0.0",
3
+ "version": "6.0.2",
4
4
  "description": "An OGC 3DTiles viewer for Three.js",
5
5
  "main": "tileset.js",
6
6
  "scripts": {
package/src/index.js CHANGED
@@ -133,8 +133,8 @@ function initTileset(scene, gem) {
133
133
  });
134
134
 
135
135
  const ogc3DTile = new OGC3DTile({
136
- //url: "https://storage.googleapis.com/ogc-3d-tiles/baltimore/tileset.json",
137
- url: "http://localhost:8080/tileset.json",
136
+ url: "https://storage.googleapis.com/ogc-3d-tiles/baltimore/tileset.json",
137
+ //url: "http://localhost:8080/tileset.json",
138
138
  //url: "https://storage.googleapis.com/ogc-3d-tiles/berlinTileset/tileset.json",
139
139
  geometricErrorMultiplier: 1,
140
140
  loadOutsideView: false,
@@ -549,10 +549,10 @@ class OGC3DTile extends THREE.Object3D {
549
549
  function setMeshVisibility(mesh, visibility) {
550
550
  mesh.material.visible = visibility;
551
551
  if (!!visibility) {
552
- self.meshesToDisplay++;
552
+ self.meshesToDisplay=1;
553
553
  mesh.onAfterRender = () => {
554
554
  delete mesh.onAfterRender;
555
- self.meshesDisplayed++;
555
+ self.meshesDisplayed=1;
556
556
  };
557
557
  }
558
558