|
@@ -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",
|