lateri 4 年之前
父節點
當前提交
433a082684
共有 3 個文件被更改,包括 10 次插入15 次删除
  1. 2 0
      js/three.min.js
  2. 3 1
      pano3.html
  3. 5 14
      test.js

File diff suppressed because it is too large
+ 2 - 0
js/three.min.js


+ 3 - 1
pano3.html

@@ -131,7 +131,9 @@
 
 
     <div class="ctrlBtn"></div>
     <div class="ctrlBtn"></div>
 
 
-    <script type="module" src="test.js"></script>
+    <script src="js/three.min.js"></script>
+
+    <script src="test.js"></script>
 
 
     <script type="text/javaScript">
     <script type="text/javaScript">
 
 

+ 5 - 14
test.js

@@ -1,16 +1,7 @@
-import * as THREE from './js/three.module.js';
+// import * as THREE from './js/three.module.js';
 
 
 var camera, scene, renderer,controls,material;
 var camera, scene, renderer,controls,material;
 
 
-var isUserInteracting = false,
-    onMouseDownMouseX = 0,
-    onMouseDownMouseY = 0,
-    lon = 0,
-    onMouseDownLon = 0,
-    lat = 0,
-    onMouseDownLat = 0,
-    phi = 0,
-    theta = 0;
 
 
 init();
 init();
 animate();
 animate();
@@ -31,7 +22,7 @@ function init(texture) {
     geometry.scale(-1, 1, 1);
     geometry.scale(-1, 1, 1);
     // invert the geometry on the x-axis so that all of the faces point inward
     // invert the geometry on the x-axis so that all of the faces point inward
 
 
-    material = new THREE.MeshBasicMaterial({ color:0xffff00});
+    material = new THREE.MeshBasicMaterial({ color:0x0000ff});
 
 
     mesh = new THREE.Mesh(geometry, material);
     mesh = new THREE.Mesh(geometry, material);
 
 
@@ -73,9 +64,9 @@ function update() {
     renderer.render(scene, camera);
     renderer.render(scene, camera);
 
 
 }
 }
-function reloadData() {
-    window.location.href="pano_object_scenne_test.html";
-}
+// function reloadData() {
+//     window.location.href="pano_object_scenne_test.html";
+// }
 
 
 var btn = new tvSysBtnBind({
 var btn = new tvSysBtnBind({
     id: "Jdoc",
     id: "Jdoc",