Kaynağa Gözat

fix scaling on mobile

Garrett Johnson 5 yıl önce
ebeveyn
işleme
570b80e785

+ 4 - 10
example/bundle/customMaterial.dd39ecee.js

@@ -35937,9 +35937,6 @@ Object.defineProperty(exports, "__esModule", {
 });
 exports.LRUCache = void 0;
 
-// TODO: can we remove the use of `indexOf` here because it's potentially slow? Possibly use time and sort as needed?
-// Keep a used list that we can sort as needed when it's dirty, a map of item to last used time, and a binary search
-// of the array to find an item that needs to be removed
 // Fires at the end of the frame and before the next one
 function enqueueMicrotask(callback) {
   Promise.resolve().then(callback);
@@ -36280,7 +36277,6 @@ function traverseSet(tile, beforeCb = null, afterCb = null, parent = null, depth
     afterCb(tile, parent, depth);
   }
 } // Determine which tiles are within the camera frustum.
-// TODO: include frustum mask here?
 // TODO: this is marking items as used in the lrucache, which means some data is
 // being kept around that isn't being used -- is that okay?
 
@@ -36634,7 +36630,7 @@ class TilesRendererBase {
 
       if (tile.content.uri) {
         tile.content.uri = _path.default.join(tileSetDir, tile.content.uri);
-      } // TODO: fix for some cases where tilesets provide the bounding volume
+      } // NOTE: fix for some cases where tilesets provide the bounding volume
       // but volumes are not present.
 
 
@@ -39505,7 +39501,7 @@ function raycastTraverseFirstHit(root, group, activeTiles, raycaster) {
     } else {
       return null;
     }
-  } // TODO: see if we can avoid creating a new array here every time to save on memory
+  } // TODO: can we avoid creating a new array here every time to save on memory?
 
 
   const array = [];
@@ -40277,7 +40273,6 @@ class SphereHelper extends _three.LineSegments {
   }
 
   updateMatrixWorld(force) {
-    // TODO: Why doesn't this radius have to be multiplied by 0.5?
     const sphere = this.sphere;
     this.position.copy(sphere.center);
     this.scale.setScalar(sphere.radius);
@@ -40430,8 +40425,7 @@ class DebugTilesRenderer extends _TilesRenderer.TilesRenderer {
       maxDistance = this.root.cached.sphere.radius;
     } else {
       maxDistance = this.maxDebugDistance;
-    } // TODO: Support i3dm, pnts, cmpt here
-
+    }
 
     const errorTarget = this.errorTarget;
     const colorMode = this.colorMode;
@@ -44872,7 +44866,7 @@ var parent = module.bundle.parent;
 if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {
   var hostname = "" || location.hostname;
   var protocol = location.protocol === 'https:' ? 'wss' : 'ws';
-  var ws = new WebSocket(protocol + '://' + hostname + ':' + "55097" + '/');
+  var ws = new WebSocket(protocol + '://' + hostname + ':' + "50060" + '/');
 
   ws.onmessage = function (event) {
     checkedAssets = {};

Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
example/bundle/customMaterial.dd39ecee.js.map


+ 5 - 0
example/bundle/customMaterial.html

@@ -1,6 +1,11 @@
 <!DOCTYPE html>
 <html>
     <head>
+		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
+		<meta charset="utf-8">
+
+		<title>3D Tiles Renderer Material Example</title>
+
         <style>* {
                 margin: 0;
                 padding: 0;

+ 1 - 1
example/bundle/customMaterial.js

@@ -212,7 +212,7 @@ var parent = module.bundle.parent;
 if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {
   var hostname = "" || location.hostname;
   var protocol = location.protocol === 'https:' ? 'wss' : 'ws';
-  var ws = new WebSocket(protocol + '://' + hostname + ':' + "55097" + '/');
+  var ws = new WebSocket(protocol + '://' + hostname + ':' + "50060" + '/');
 
   ws.onmessage = function (event) {
     checkedAssets = {};

Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
example/bundle/customMaterial.js.map


+ 4 - 10
example/bundle/example.e31bb0bc.js

@@ -35937,9 +35937,6 @@ Object.defineProperty(exports, "__esModule", {
 });
 exports.LRUCache = void 0;
 
-// TODO: can we remove the use of `indexOf` here because it's potentially slow? Possibly use time and sort as needed?
-// Keep a used list that we can sort as needed when it's dirty, a map of item to last used time, and a binary search
-// of the array to find an item that needs to be removed
 // Fires at the end of the frame and before the next one
 function enqueueMicrotask(callback) {
   Promise.resolve().then(callback);
@@ -36280,7 +36277,6 @@ function traverseSet(tile, beforeCb = null, afterCb = null, parent = null, depth
     afterCb(tile, parent, depth);
   }
 } // Determine which tiles are within the camera frustum.
-// TODO: include frustum mask here?
 // TODO: this is marking items as used in the lrucache, which means some data is
 // being kept around that isn't being used -- is that okay?
 
@@ -36634,7 +36630,7 @@ class TilesRendererBase {
 
       if (tile.content.uri) {
         tile.content.uri = _path.default.join(tileSetDir, tile.content.uri);
-      } // TODO: fix for some cases where tilesets provide the bounding volume
+      } // NOTE: fix for some cases where tilesets provide the bounding volume
       // but volumes are not present.
 
 
@@ -39505,7 +39501,7 @@ function raycastTraverseFirstHit(root, group, activeTiles, raycaster) {
     } else {
       return null;
     }
-  } // TODO: see if we can avoid creating a new array here every time to save on memory
+  } // TODO: can we avoid creating a new array here every time to save on memory?
 
 
   const array = [];
@@ -40277,7 +40273,6 @@ class SphereHelper extends _three.LineSegments {
   }
 
   updateMatrixWorld(force) {
-    // TODO: Why doesn't this radius have to be multiplied by 0.5?
     const sphere = this.sphere;
     this.position.copy(sphere.center);
     this.scale.setScalar(sphere.radius);
@@ -40430,8 +40425,7 @@ class DebugTilesRenderer extends _TilesRenderer.TilesRenderer {
       maxDistance = this.root.cached.sphere.radius;
     } else {
       maxDistance = this.maxDebugDistance;
-    } // TODO: Support i3dm, pnts, cmpt here
-
+    }
 
     const errorTarget = this.errorTarget;
     const colorMode = this.colorMode;
@@ -45580,7 +45574,7 @@ var parent = module.bundle.parent;
 if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {
   var hostname = "" || location.hostname;
   var protocol = location.protocol === 'https:' ? 'wss' : 'ws';
-  var ws = new WebSocket(protocol + '://' + hostname + ':' + "55097" + '/');
+  var ws = new WebSocket(protocol + '://' + hostname + ':' + "50060" + '/');
 
   ws.onmessage = function (event) {
     checkedAssets = {};

Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
example/bundle/example.e31bb0bc.js.map


+ 6 - 1
example/bundle/index.html

@@ -1,7 +1,12 @@
 <!DOCTYPE html>
 <html>
     <head>
-        <style>* {
+        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
+		<meta charset="utf-8">
+
+		<title>3D Tiles Renderer Options Example</title>
+
+		<style>* {
                 margin: 0;
                 padding: 0;
             }

+ 1 - 1
example/bundle/index.js

@@ -212,7 +212,7 @@ var parent = module.bundle.parent;
 if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {
   var hostname = "" || location.hostname;
   var protocol = location.protocol === 'https:' ? 'wss' : 'ws';
-  var ws = new WebSocket(protocol + '://' + hostname + ':' + "55097" + '/');
+  var ws = new WebSocket(protocol + '://' + hostname + ':' + "50060" + '/');
 
   ws.onmessage = function (event) {
     checkedAssets = {};

Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
example/bundle/index.js.map


+ 5 - 0
example/customMaterial.html

@@ -1,6 +1,11 @@
 <!DOCTYPE html>
 <html>
     <head>
+		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
+		<meta charset="utf-8"/>
+
+		<title>3D Tiles Renderer Material Example</title>
+
         <style>
             * {
                 margin: 0;

+ 6 - 1
example/index.html

@@ -1,7 +1,12 @@
 <!DOCTYPE html>
 <html>
     <head>
-        <style>
+        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
+		<meta charset="utf-8"/>
+
+		<title>3D Tiles Renderer Options Example</title>
+
+		<style>
             * {
                 margin: 0;
                 padding: 0;