diff options
| Commit | e813373a41aa5ed0b536dd1bd89545f9d0260560 (patch) | |
|---|---|---|
| Author | 2022-11-18 22:21:03 +0200 | |
| Committer | 2022-11-18 22:21:03 +0200 | |
| Files | 9f06725a02bcf57aabb56bb88b6003ff5f5196e0 | |
| uni-projects-e813373a41aa5ed0b536dd1bd89545f9d0260560.tar uni-projects-e813373a41aa5ed0b536dd1bd89545f9d0260560.tar.gz uni-projects-e813373a41aa5ed0b536dd1bd89545f9d0260560.zip | ||
| Parent | 70d5bfaa475c3f52725bb97982c6d1e9c3b711dc (diff) | |
[OKG/HWK2] Added Koichi
1 files changed, 34 insertions, 1 deletions
| -rw-r--r-- | Year 2/Computer Graphics Fundamentals/Homework 2/mannequin.html | 35 |
diff --git a/Year 2/Computer Graphics Fundamentals/Homework 2/mannequin.html b/Year 2/Computer Graphics Fundamentals/Homework 2/mannequin.html index 2b18a32..3af4905 100644 --- a/Year 2/Computer Graphics Fundamentals/Homework 2/mannequin.html +++ b/Year 2/Computer Graphics Fundamentals/Homework 2/mannequin.html @@ -222,8 +222,41 @@ return kira;
}
- scene.add(newJotaro());
+ function newKoichi() {
+ const suitC = thc(0x2f5951);
+ const skinC = thc(0xe0cbbc);
+ const shoeC = thc(0x919177);
+
+ Mannequin.colors = [
+ skinC, // head
+ shoeC, // shoes
+ suitC, // pelvis
+ suitC, // joints
+ suitC, // limbs
+ suitC, // torso
+ ];
+
+ var koichi = new Male(0.76);
+ koichi.position.y = 26;
+ koichi.r_wrist.recolor(skinC);
+ koichi.l_wrist.recolor(skinC);
+ koichi.r_fingers.recolor(skinC);
+ koichi.l_fingers.recolor(skinC);
+ koichi.r_fingers.tips.recolor(skinC);
+ koichi.l_fingers.tips.recolor(skinC);
+
+ var hair = new THREE.Mesh(new THREE.SphereGeometry(3.6, 10, 32, 0, 2 * Math.PI, 0, Math.PI / 2),
+ new THREE.MeshPhongMaterial({ color: 0xb4b7ae, flatShading: 1 }));
+ hair.position.y = 3.9;
+ hair.position.x = -0.4;
+ koichi.head.attach(hair);
+
+ return koichi;
+ }
+
+ // scene.add(newJotaro());
// scene.add(newKira());
+ scene.add(newKoichi());
// тук си направете човечетата и статичните елементи по позите
// ...
|
