TA159

Notas, resueltos y trabajos practicos de la materia Sistemas Gráficos
Index Commits Files Refs Submodules README LICENSE
commit b935c5c228d45477ef327b4aa4b5b3f97c45c888
parent 215ef4e3367419492675b1a55e7577ea8fa92a7f
Author: Martin Kloeckner <mjkloeckner@gmail.com>
Date:   Thu,  4 Jul 2024 12:00:06 -0300

show bridge camera and set the position on the scene

Diffstat:
Mtp/src/scene.js | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/tp/src/scene.js b/tp/src/scene.js
@@ -178,9 +178,10 @@ function buildBridge() {
     const bridgeCamera = new THREE.PerspectiveCamera(
         55, window.innerWidth / window.innerHeight, 0.1, 10000);
 
-    bridgeCamera.position.set(0, 16, -10);
-    bridgeCamera.lookAt(0, 18, -100);
-    bridge1.add(bridgeCamera);
+    bridgeCamera.position.set(-18, 11, -2.75);
+    bridgeCamera.lookAt(50, 0, 42);
+    bridge2.add(bridgeCamera);
+    cameras.push(bridgeCamera);
 
     scene.add(bridge1);
     scene.add(bridge2);