From e98edd67719e721faf197d60d45fe16b81116f48 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 19 Nov 2022 09:26:55 +0200 Subject: [OKG/HWK2] Added Koichi in his fallen down state --- .../Homework 2/mannequin.html | 25 +++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/Year 2/Computer Graphics Fundamentals/Homework 2/mannequin.html b/Year 2/Computer Graphics Fundamentals/Homework 2/mannequin.html index fa30800..bd418b1 100644 --- a/Year 2/Computer Graphics Fundamentals/Homework 2/mannequin.html +++ b/Year 2/Computer Graphics Fundamentals/Homework 2/mannequin.html @@ -42,7 +42,7 @@ var aspect = window.innerWidth/window.innerHeight; var camera = new THREE.PerspectiveCamera( 30, aspect ); - camera.position.set( 0, 50, 200 ); + camera.position.set( 0, 800, 00 ); camera.lookAt( new THREE.Vector3(0, 50, 0) ); function onWindowResize(event) @@ -63,7 +63,7 @@ const sceneSize = 1000; - var ground = new THREE.Mesh(new THREE.PlaneBufferGeometry(sceneSize, sceneSize), + var ground = new THREE.Mesh(new THREE.PlaneBufferGeometry(sceneSize * 1.5, sceneSize), new THREE.MeshPhongMaterial({ color: 0x8eb5b2 })); ground.rotation.x = -Math.PI / 2; ground.receiveShadow = true; @@ -92,8 +92,27 @@ var jotaro = newJotaro(); //jotaro.rotation.x = Math.PI / 2; scene.add(jotaro); + // scene.add(newKira()); - // scene.add(newKoichi()); + + var koichi = newKoichi(); + koichi.rotation.x = Math.PI / 2; + koichi.rotation.z = Math.PI * 0.9; + koichi.position.set(90, 1, 60); + koichi.head.turn = 90; + koichi.head.tilt = 20; + koichi.l_ankle.turn = 85; + koichi.r_ankle.turn = -85; + koichi.torso.turn = 10; + koichi.r_arm.raise = 190; + koichi.r_arm.straddle = 250; + koichi.r_arm.turn = -90; + koichi.r_elbow.bend = 70; + koichi.r_wrist.bend = 4; + koichi.l_arm.raise = 14; + koichi.l_arm.turn = 90; + scene.add(koichi); + var patio = new THREE.Mesh(new THREE.BoxGeometry(300, 1, 300), new THREE.MeshPhongMaterial({ color: 0x978661 })); -- cgit v1.3.1-26-gb76a