shirt shorts and shoes
This commit is contained in:
parent
c919d5c8ce
commit
b308397f5e
@ -119,6 +119,73 @@
|
|||||||
"meshMaskList" : []
|
"meshMaskList" : []
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"itemId" : "boots1",
|
||||||
|
"modelPath": "Models/itemEntityShorts.fbx",
|
||||||
|
"tokens" : [
|
||||||
|
"GRAVITY",
|
||||||
|
"ARMOR",
|
||||||
|
"TARGETABLE"
|
||||||
|
],
|
||||||
|
"collidable": {
|
||||||
|
"type" : "CUBE",
|
||||||
|
"dimension1" : 0.1,
|
||||||
|
"dimension2" : 0.1,
|
||||||
|
"dimension3" : 0.35,
|
||||||
|
"offsetX" : 0,
|
||||||
|
"offsetY" : 0.05,
|
||||||
|
"offsetZ" : 0
|
||||||
|
},
|
||||||
|
"equipWhitelist" : [
|
||||||
|
{
|
||||||
|
"creatureId" : "human",
|
||||||
|
"model" : "Models/boots1.fbx",
|
||||||
|
"meshList" : [
|
||||||
|
"BootLeft",
|
||||||
|
"BootRight"
|
||||||
|
],
|
||||||
|
"meshMaskList" : [
|
||||||
|
"FootLeft",
|
||||||
|
"FootRight",
|
||||||
|
"LowerLegLeft",
|
||||||
|
"LowerLegRight"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"itemId" : "shirt1",
|
||||||
|
"modelPath": "Models/itemEntityShorts.fbx",
|
||||||
|
"tokens" : [
|
||||||
|
"GRAVITY",
|
||||||
|
"ARMOR",
|
||||||
|
"TARGETABLE"
|
||||||
|
],
|
||||||
|
"collidable": {
|
||||||
|
"type" : "CUBE",
|
||||||
|
"dimension1" : 0.1,
|
||||||
|
"dimension2" : 0.1,
|
||||||
|
"dimension3" : 0.35,
|
||||||
|
"offsetX" : 0,
|
||||||
|
"offsetY" : 0.05,
|
||||||
|
"offsetZ" : 0
|
||||||
|
},
|
||||||
|
"equipWhitelist" : [
|
||||||
|
{
|
||||||
|
"creatureId" : "human",
|
||||||
|
"model" : "Models/shirt1.fbx",
|
||||||
|
"meshList" : [
|
||||||
|
"ClothingItem"
|
||||||
|
],
|
||||||
|
"meshMaskList" : [
|
||||||
|
"ShoulderLeft",
|
||||||
|
"ShoulderRight"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
BIN
assets/Models/boots1.fbx
Normal file
BIN
assets/Models/boots1.fbx
Normal file
Binary file not shown.
BIN
assets/Models/shirt1.fbx
Normal file
BIN
assets/Models/shirt1.fbx
Normal file
Binary file not shown.
Binary file not shown.
BIN
assets/Textures/boots1.png
Normal file
BIN
assets/Textures/boots1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 675 KiB |
@ -210,8 +210,8 @@
|
|||||||
},
|
},
|
||||||
"Models/shorts1.fbx" : {
|
"Models/shorts1.fbx" : {
|
||||||
"ClothingItem" : [
|
"ClothingItem" : [
|
||||||
"/Textures/b1.png",
|
"/Textures/shorts1.png",
|
||||||
"/Textures/b1.png"
|
"/Textures/shorts1.png"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"Models/hairshort1.fbx" : {
|
"Models/hairshort1.fbx" : {
|
||||||
@ -219,6 +219,22 @@
|
|||||||
"/Textures/b1.png",
|
"/Textures/b1.png",
|
||||||
"/Textures/b1.png"
|
"/Textures/b1.png"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"Models/boots1.fbx" : {
|
||||||
|
"BootLeft" : [
|
||||||
|
"/Textures/boots1.png",
|
||||||
|
"/Textures/boots1.png"
|
||||||
|
],
|
||||||
|
"BootRight" : [
|
||||||
|
"/Textures/boots1.png",
|
||||||
|
"/Textures/boots1.png"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"Models/shirt1.fbx" : {
|
||||||
|
"ClothingItem" : [
|
||||||
|
"/Textures/shirt1.png",
|
||||||
|
"/Textures/shirt1.png"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
BIN
assets/Textures/shirt1.png
Normal file
BIN
assets/Textures/shirt1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 44 KiB |
BIN
assets/Textures/shorts1.png
Normal file
BIN
assets/Textures/shorts1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 356 KiB |
@ -625,9 +625,9 @@ public class LoadingThread extends Thread {
|
|||||||
// MindlessAttacker.attachToCreature(goblin);
|
// MindlessAttacker.attachToCreature(goblin);
|
||||||
OpportunisticAttacker.attachToCreature(goblin);
|
OpportunisticAttacker.attachToCreature(goblin);
|
||||||
|
|
||||||
Entity shorts = ItemUtils.spawnBasicItem("shorts1");
|
Entity shorts = ItemUtils.spawnBasicItem("boots1");
|
||||||
EntityUtils.getPosition(shorts).set(new Vector3f(2,1,1));
|
EntityUtils.getPosition(shorts).set(new Vector3f(2,1,1));
|
||||||
Entity hair = ItemUtils.spawnBasicItem("hairshort1");
|
Entity hair = ItemUtils.spawnBasicItem("shirt1");
|
||||||
EntityUtils.getPosition(hair).set(new Vector3f(1,1,1));
|
EntityUtils.getPosition(hair).set(new Vector3f(1,1,1));
|
||||||
|
|
||||||
// goblin = CreatureUtils.spawnBasicCreature("Goblin");
|
// goblin = CreatureUtils.spawnBasicCreature("Goblin");
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
package electrosphere.renderer;
|
package electrosphere.renderer;
|
||||||
|
|
||||||
import electrosphere.entity.CameraEntityUtils;
|
import electrosphere.entity.CameraEntityUtils;
|
||||||
|
import electrosphere.logger.LoggerInterface;
|
||||||
import electrosphere.main.Globals;
|
import electrosphere.main.Globals;
|
||||||
import electrosphere.main.Main;
|
import electrosphere.main.Main;
|
||||||
import electrosphere.renderer.light.LightBuffer;
|
import electrosphere.renderer.light.LightBuffer;
|
||||||
@ -825,11 +826,18 @@ public class Mesh {
|
|||||||
float bufferarray[] = new float[16];
|
float bufferarray[] = new float[16];
|
||||||
int incrementer = 0;
|
int incrementer = 0;
|
||||||
while (boneIterator.hasNext()){
|
while (boneIterator.hasNext()){
|
||||||
Bone currentBone = parent.boneMap.get(boneIterator.next());
|
String boneName = boneIterator.next();
|
||||||
Matrix4f currentMat = new Matrix4f(currentBone.final_transform);
|
Bone currentBone = parent.boneMap.get(boneName);
|
||||||
currentMat.get(bufferarray);
|
|
||||||
String currentUniform = "bones[" + incrementer + "]";
|
String currentUniform = "bones[" + incrementer + "]";
|
||||||
GL20.glUniformMatrix4fv(glGetUniformLocation(Globals.renderingEngine.getActiveShader().shaderProgram, currentUniform), false, bufferarray);
|
if(currentBone != null){
|
||||||
|
Matrix4f currentMat = new Matrix4f(currentBone.final_transform);
|
||||||
|
currentMat.get(bufferarray);
|
||||||
|
GL20.glUniformMatrix4fv(glGetUniformLocation(Globals.renderingEngine.getActiveShader().shaderProgram, currentUniform), false, bufferarray);
|
||||||
|
} else {
|
||||||
|
System.out.println("Bonename: " + boneName);
|
||||||
|
System.exit(1);
|
||||||
|
GL20.glUniformMatrix4fv(glGetUniformLocation(Globals.renderingEngine.getActiveShader().shaderProgram, currentUniform), false, new float[16]);
|
||||||
|
}
|
||||||
incrementer++;
|
incrementer++;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user