diff --git a/model/tohokukoekiGis.glb b/model/tohokukoekiGis.glb new file mode 100644 index 0000000..1708e55 --- /dev/null +++ b/model/tohokukoekiGis.glb Binary files differ diff --git a/threeJsTemplate.html b/threeJsTemplate.html index 80eb5f4..6b4cc78 100644 --- a/threeJsTemplate.html +++ b/threeJsTemplate.html @@ -45,14 +45,14 @@ function fCamera() { camera = new THREE.PerspectiveCamera(45, window.innerWidth / window.innerHeight, 0.1, 1000); //カメラセット - camera.position.set(8, 8, 50); // カメラの位置 + camera.position.set(100, 500, 500); // カメラの位置 camera.lookAt(new THREE.Vector3(0, 5, 0)); } //ライトの作成 function fLight() { const light = new THREE.SpotLight(0xffffff, 1.0); - light.position.set(100, 100, 100); + light.position.set(100, 500, 500); scene.add(light); light.castShadow = true; console.log(light); @@ -134,7 +134,7 @@ //glbファイルの読み込み function fGlbLoader() { const gloader = new GLTFLoader(); - gloader.load("model/plane.glb", function (gltf) { + gloader.load("model/tohokukoekiGis.glb", function (gltf) { model = gltf.scene; model.position.set(0, 0.02, 0); scene.add(model); @@ -200,7 +200,7 @@ const mouse = new THREE.Vector2(); function updateCameraPosition() { - const speed = 1; // 移動速度 + const speed = 10; // 移動速度 const direction = new THREE.Vector3(); const { x, y, z } = controls.getObject().position; direction.x = Number(moveRight) - Number(moveLeft);