Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
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 }));