From ffb99bd9984f38934d45335b2cecc2243ba594e2 Mon Sep 17 00:00:00 2001 From: James Harrison Date: Thu, 10 Sep 2020 23:52:46 +0100 Subject: [PATCH 1/7] Swap textures --- src/model.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/model.ts b/src/model.ts index fba5ae6..9ff6996 100644 --- a/src/model.ts +++ b/src/model.ts @@ -402,8 +402,8 @@ export class CapeObject extends Group { // front = inside const capeBox = new BoxGeometry(10, 16, 1); setVertices(capeBox, - toCapeVertices(1, 0, 11, 1), - toCapeVertices(11, 0, 21, 1), + toCapeVertices(11, 1, 1, 0), + toCapeVertices(21, 1, 11, 0), toCapeVertices(11, 1, 12, 17), toCapeVertices(12, 1, 22, 17), toCapeVertices(0, 1, 1, 17), From c68492ffa7ed4744b5f61c248f5f3118c14af229 Mon Sep 17 00:00:00 2001 From: Haowei Wen Date: Fri, 11 Sep 2020 22:47:37 +0800 Subject: [PATCH 2/7] 2.0.0-alpha.9 --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index f9e538a..6743967 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "skinview3d", - "version": "2.0.0-alpha.8", + "version": "2.0.0-alpha.9", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 58a11d0..eeec340 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "skinview3d", - "version": "2.0.0-alpha.8", + "version": "2.0.0-alpha.9", "description": "Three.js powered Minecraft skin viewer", "main": "libs/skinview3d.js", "type": "module", From ae48acfff778facc648f764f6c39d2579083bcdc Mon Sep 17 00:00:00 2001 From: Haowei Wen Date: Sat, 12 Sep 2020 17:20:54 +0800 Subject: [PATCH 3/7] change default rotation angle of cape to 10.8 deg --- src/model.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/model.ts b/src/model.ts index 9ff6996..7a0992b 100644 --- a/src/model.ts +++ b/src/model.ts @@ -432,7 +432,7 @@ export class PlayerObject extends Group { this.cape.name = "cape"; this.cape.position.z = -2; this.cape.position.y = -4; - this.cape.rotation.x = 25 * Math.PI / 180; + this.cape.rotation.x = 10.8 * Math.PI / 180; this.add(this.cape); } } From 5931532f9bd2a28df60a416b2d1fda3bc1da616f Mon Sep 17 00:00:00 2001 From: Haowei Wen Date: Sat, 12 Sep 2020 17:32:50 +0800 Subject: [PATCH 4/7] examples: use static layers_table so its contents are preserved after refresh --- examples/index.html | 88 +++++++++++++++++++-------------------------- 1 file changed, 37 insertions(+), 51 deletions(-) diff --git a/examples/index.html b/examples/index.html index 8256ceb..7a132f6 100644 --- a/examples/index.html +++ b/examples/index.html @@ -150,7 +150,37 @@

Skin Layers

- + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
headbodyright armleft armright legleft leg
inner
outer
@@ -219,18 +249,8 @@ From ee9a27b34ecc112d05c725ebbe8a1a88960270b7 Mon Sep 17 00:00:00 2001 From: Haowei Wen Date: Sat, 12 Sep 2020 17:51:18 +0800 Subject: [PATCH 5/7] examples: fix validation errors --- examples/index.html | 35 +++++++++++++++++------------------ 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/examples/index.html b/examples/index.html index 7a132f6..2244ad6 100644 --- a/examples/index.html +++ b/examples/index.html @@ -1,5 +1,5 @@ - + @@ -202,8 +202,8 @@ onclick="document.getElementById('skin_url_upload').click();">Browse...