2
0
Эх сурвалжийг харах

Added original textures for UTF8 models.

Now that the new version of UTF8 supports materials, we may as well use them.
alteredq 13 жил өмнө
parent
commit
9c3d5acd64

BIN
examples/models/utf8_r104/James_Body_Lores.jpg


BIN
examples/models/utf8_r104/James_EyeLashBotTran.png


BIN
examples/models/utf8_r104/James_EyeLashTopTran.png


BIN
examples/models/utf8_r104/James_Eye_Green.jpg


BIN
examples/models/utf8_r104/James_Eye_Inner_Green.jpg


BIN
examples/models/utf8_r104/James_Face_Color_Hair_Lores.jpg


BIN
examples/models/utf8_r104/James_Mouth_Gum_Lores.jpg


BIN
examples/models/utf8_r104/James_Tongue_Lores.jpg


BIN
examples/models/utf8_r104/MCasShoe1TEX_Lores.jpg


BIN
examples/models/utf8_r104/MJeans1TEX_Lores.jpg


BIN
examples/models/utf8_r104/MTshirt3TEX_Lores.jpg


BIN
examples/models/utf8_r104/Nail_Hand_01_Lores.jpg


+ 15 - 15
examples/models/utf8_r104/ben.js

@@ -1,24 +1,24 @@
 {
 {
   "materials": {
   "materials": {
-    "gums": { "map_Kd": "../../textures/ash_uvgrid01.jpg" },
-    "tongue": { "map_Kd": "../../textures/ash_uvgrid01.jpg" },
+    "gums": { "map_Kd": "James_Mouth_Gum_Lores.jpg" },
+    "tongue": { "map_Kd": "James_Tongue_Lores.jpg" },
     "teethbottom": { "Kd": [251, 248, 248] },
     "teethbottom": { "Kd": [251, 248, 248] },
     "teethtop": { "Kd": [251, 248, 248] },
     "teethtop": { "Kd": [251, 248, 248] },
-    "topeyelashes": { "Kd": [66, 52, 42] },
-    "bottomeyelashes": { "Kd": [66, 52, 42] },
-    "head": { "map_Kd": "../../textures/ash_uvgrid01.jpg" },
+    "topeyelashes": { "Kd": [66, 52, 42], "map_Kd": "James_EyeLashTopTran.png", "d": 0.999 },
+    "bottomeyelashes": { "Kd": [66, 52, 42], "map_Kd": "James_EyeLashBotTran.png", "d": 0.999 },
+    "head": { "map_Kd": "James_Face_Color_Hair_Lores.jpg" },
     "eyetrans": { "Kd": [0, 0, 0] },
     "eyetrans": { "Kd": [0, 0, 0] },
     "pupil": { "Kd": [1, 1, 1] },
     "pupil": { "Kd": [1, 1, 1] },
-    "iris": { "map_Kd": "../../textures/ash_uvgrid01.jpg" },
-    "eyeball": { "map_Kd": "../../textures/ash_uvgrid01.jpg" },
-    "pants": { "map_Kd": "../../textures/ash_uvgrid01.jpg" },
-    "tshirt3": { "map_Kd": "../../textures/ash_uvgrid01.jpg" },
-    "skinbody": { "map_Kd": "../../textures/ash_uvgrid01.jpg" },
-    "fingernails": { "map_Kd": "../../textures/ash_uvgrid01.jpg" },
-    "soleshoe": { "map_Kd": "../../textures/ash_uvgrid01.jpg" },
-    "sole": { "map_Kd": "../../textures/ash_uvgrid01.jpg" },
-    "laces": { "map_Kd": "../../textures/ash_uvgrid01.jpg" },
-    "bow": { "map_Kd": "../../textures/ash_uvgrid01.jpg" }
+    "iris": { "map_Kd": "James_Eye_Inner_Green.jpg" },
+    "eyeball": { "map_Kd": "James_Eye_Green.jpg" },
+    "pants": { "map_Kd": "MJeans1TEX_Lores.jpg" },
+    "tshirt3": { "map_Kd": "MTshirt3TEX_Lores.jpg" },
+    "skinbody": { "map_Kd": "James_Body_Lores.jpg" },
+    "fingernails": { "map_Kd": "Nail_Hand_01_Lores.jpg" },
+    "soleshoe": { "map_Kd": "MCasShoe1TEX_Lores.jpg" },
+    "sole": { "map_Kd": "MCasShoe1TEX_Lores.jpg" },
+    "laces": { "map_Kd": "MCasShoe1TEX_Lores.jpg" },
+    "bow": { "map_Kd": "MCasShoe1TEX_Lores.jpg" }
   },
   },
   "decodeParams": {
   "decodeParams": {
     "decodeOffsets": [-2533,-149,-6225,0,0,-511,-511,-511],
     "decodeOffsets": [-2533,-149,-6225,0,0,-511,-511,-511],

BIN
examples/models/utf8_r104/hand.jpg


+ 2 - 2
examples/models/utf8_r104/hand.js

@@ -1,8 +1,8 @@
 {
 {
   "materials": {
   "materials": {
     "preview": { "Kd": [184, 136, 234] },
     "preview": { "Kd": [184, 136, 234] },
-    "nails": { "map_Kd": "../../textures/ash_uvgrid01.jpg" },
-    "skin": { "map_Kd": "../../textures/ash_uvgrid01.jpg" }
+    "nails": { "map_Kd": "hand.jpg" },
+    "skin": { "map_Kd": "hand.jpg" }
   },
   },
   "decodeParams": {
   "decodeParams": {
     "decodeOffsets": [-7473,-239,-8362,0,0,-511,-511,-511],
     "decodeOffsets": [-7473,-239,-8362,0,0,-511,-511,-511],

+ 7 - 1
examples/webgl_loader_utf8_r104.html

@@ -95,7 +95,7 @@
 
 
 				// RENDERER
 				// RENDERER
 
 
-				renderer = new THREE.WebGLRenderer();
+				renderer = new THREE.WebGLRenderer( { antialias: true } );
 				renderer.setSize( SCREEN_WIDTH, SCREEN_HEIGHT );
 				renderer.setSize( SCREEN_WIDTH, SCREEN_HEIGHT );
 
 
 				renderer.setClearColor( scene.fog.color, 1 );
 				renderer.setClearColor( scene.fog.color, 1 );
@@ -103,6 +103,12 @@
 				renderer.domElement.style.position = "relative";
 				renderer.domElement.style.position = "relative";
 				container.appendChild( renderer.domElement );
 				container.appendChild( renderer.domElement );
 
 
+				//
+
+				renderer.gammaInput = true;
+				renderer.gammaOutput = true;
+				renderer.physicallyBasedShading = true;
+
 				// STATS
 				// STATS
 
 
 				stats = new Stats();
 				stats = new Stats();