Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commite98edd67719e721faf197d60d45fe16b81116f48 (patch)
Author
 Syndamia <kamen@syndamia.com>
2022-11-19 09:26:55 +0200
Committer
 Syndamia <kamen@syndamia.com>
2022-11-19 09:26:55 +0200
Filese2b92cc2c25815b370ccdf2520d86f9814edbcd9
uni-projects-e98edd67719e721faf197d60d45fe16b81116f48.tar
uni-projects-e98edd67719e721faf197d60d45fe16b81116f48.tar.gz
uni-projects-e98edd67719e721faf197d60d45fe16b81116f48.zip
Parent423c6d2de001d4549ccaab927e4f2cc9595afaa3 (diff)
[OKG/HWK2] Added Koichi in his fallen down state
1 files changed, 22 insertions, 3 deletions
-rw-r--r--Year 2/Computer Graphics Fundamentals/Homework 2/mannequin.html25
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 }));