This commit is contained in:
parent
b84c5aff49
commit
90793154ed
@ -1,33 +1,11 @@
|
|||||||
{
|
{
|
||||||
"objects" : [
|
"objects" : [
|
||||||
|
|
||||||
{
|
|
||||||
"id" : "crateWooden",
|
|
||||||
"modelPath" : "Models/crate2.fbx",
|
|
||||||
"tokens" : [
|
|
||||||
"GRAVITY",
|
|
||||||
"OUTLINE"
|
|
||||||
],
|
|
||||||
"collidable": {
|
|
||||||
"type" : "CUBE",
|
|
||||||
"dimension1" : 0.1,
|
|
||||||
"dimension2" : 0.1,
|
|
||||||
"dimension3" : 0.35,
|
|
||||||
"rotX": 0,
|
|
||||||
"rotY": 0,
|
|
||||||
"rotZ": 0,
|
|
||||||
"rotW": 1,
|
|
||||||
"offsetX" : 0,
|
|
||||||
"offsetY" : 0.05,
|
|
||||||
"offsetZ" : 0
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
],
|
],
|
||||||
"files" : [
|
"files" : [
|
||||||
"Data/entity/objects/floatingisland.json",
|
|
||||||
"Data/entity/objects/testscene1objects.json",
|
"Data/entity/objects/testscene1objects.json",
|
||||||
"Data/entity/objects/debug_objects.json",
|
"Data/entity/objects/debug_objects.json",
|
||||||
"Data/entity/objects/game_objects.json"
|
"Data/entity/objects/game_objects.json",
|
||||||
|
"Data/entity/objects/containers.json"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
34
assets/Data/entity/objects/containers.json
Normal file
34
assets/Data/entity/objects/containers.json
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
{
|
||||||
|
"objects" : [
|
||||||
|
|
||||||
|
{
|
||||||
|
"id" : "crate",
|
||||||
|
"hitboxData" : [
|
||||||
|
{
|
||||||
|
"type": "static_capsule",
|
||||||
|
"radius": 2,
|
||||||
|
"length": 5
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"collidable": {
|
||||||
|
"type" : "CUBE",
|
||||||
|
"dimension1" : 2.0,
|
||||||
|
"dimension2" : 2.0,
|
||||||
|
"dimension3" : 2.0,
|
||||||
|
"rotX": 0,
|
||||||
|
"rotY": 0,
|
||||||
|
"rotZ": 0,
|
||||||
|
"rotW": 1,
|
||||||
|
"offsetX" : 0,
|
||||||
|
"offsetY" : 0.05,
|
||||||
|
"offsetZ" : 0
|
||||||
|
},
|
||||||
|
"tokens": [
|
||||||
|
"GRAVITY"
|
||||||
|
],
|
||||||
|
"modelPath" : "Models/objects/crate2.glb"
|
||||||
|
}
|
||||||
|
|
||||||
|
],
|
||||||
|
"files" : []
|
||||||
|
}
|
||||||
@ -1,28 +0,0 @@
|
|||||||
{
|
|
||||||
"objects" : [
|
|
||||||
|
|
||||||
{
|
|
||||||
"id" : "floatingisland1",
|
|
||||||
"modelPath" : "Models/floatingisland1.fbx",
|
|
||||||
"tokens" : [
|
|
||||||
"DISABLE_COLLISION_REACTION",
|
|
||||||
"TERRAIN_COLLISION"
|
|
||||||
],
|
|
||||||
"collidable": {
|
|
||||||
"type" : "CYLINDER",
|
|
||||||
"dimension1" : 1.7,
|
|
||||||
"dimension2" : 1.7,
|
|
||||||
"dimension3" : 1.7,
|
|
||||||
"rotX": 0,
|
|
||||||
"rotY": 0,
|
|
||||||
"rotZ": 0,
|
|
||||||
"rotW": 1,
|
|
||||||
"offsetX" : 0,
|
|
||||||
"offsetY" : -1.7,
|
|
||||||
"offsetZ" : 0
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
],
|
|
||||||
"files" : []
|
|
||||||
}
|
|
||||||
@ -1,46 +1,5 @@
|
|||||||
{
|
{
|
||||||
"objects" : [
|
"objects" : [
|
||||||
|
|
||||||
{
|
|
||||||
"id" : "terrain1",
|
|
||||||
"modelPath" : "Models/testvalley.fbx",
|
|
||||||
"tokens" : [
|
|
||||||
"DISABLE_COLLISION_REACTION",
|
|
||||||
"GENERATE_COLLISION_TERRAIN"
|
|
||||||
],
|
|
||||||
"collidable": null,
|
|
||||||
"graphicsTemplate": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id" : "skyscraper1",
|
|
||||||
"modelPath" : "Models/skyscraper1.fbx",
|
|
||||||
"tokens" : [
|
|
||||||
"DISABLE_COLLISION_REACTION",
|
|
||||||
"GENERATE_COLLISION_TERRAIN"
|
|
||||||
],
|
|
||||||
"collidable": null,
|
|
||||||
"graphicsTemplate": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id" : "smoke1",
|
|
||||||
"modelPath" : "Models/unitcube.fbx",
|
|
||||||
"tokens" : [
|
|
||||||
"DRAW_TRANSPARENT_PASS"
|
|
||||||
],
|
|
||||||
"collidable": null,
|
|
||||||
"graphicsTemplate": {
|
|
||||||
"shaderOverrideMeshList": [
|
|
||||||
"Cube"
|
|
||||||
],
|
|
||||||
"shaderMap": {
|
|
||||||
"Cube": {
|
|
||||||
"vertexPath": "Shaders/smoke1/smoke1.vs",
|
|
||||||
"geometryPath": null,
|
|
||||||
"fragmentPath": "Shaders/smoke1/smoke1.fs"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"id" : "geometrytest1",
|
"id" : "geometrytest1",
|
||||||
"modelPath" : "Models/geometry1.fbx",
|
"modelPath" : "Models/geometry1.fbx",
|
||||||
|
|||||||
@ -1,141 +0,0 @@
|
|||||||
{
|
|
||||||
"structures" : [
|
|
||||||
{
|
|
||||||
"name" : "building1",
|
|
||||||
"modelPath" : "Models/building1.fbx",
|
|
||||||
"radius" : 10,
|
|
||||||
"collision" : [
|
|
||||||
{
|
|
||||||
"type" : "CUBE",
|
|
||||||
"positionX" : 0,
|
|
||||||
"positionY" : -1,
|
|
||||||
"positionZ" : 0.3,
|
|
||||||
"scaleX" : 7.5,
|
|
||||||
"scaleY" : 1.5,
|
|
||||||
"scaleZ" : 0.3,
|
|
||||||
"rotationW" : 1,
|
|
||||||
"rotationX" : 0,
|
|
||||||
"rotationY" : 0,
|
|
||||||
"rotationZ" : 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type" : "CUBE",
|
|
||||||
"positionX" : 7.2,
|
|
||||||
"positionY" : -1,
|
|
||||||
"positionZ" : 3,
|
|
||||||
"scaleX" : 0.3,
|
|
||||||
"scaleY" : 1.5,
|
|
||||||
"scaleZ" : 3,
|
|
||||||
"rotationW" : 1,
|
|
||||||
"rotationX" : 0,
|
|
||||||
"rotationY" : 0,
|
|
||||||
"rotationZ" : 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type" : "CUBE",
|
|
||||||
"positionX" : 7.2,
|
|
||||||
"positionY" : 0.4,
|
|
||||||
"positionZ" : 3,
|
|
||||||
"scaleX" : 0.3,
|
|
||||||
"scaleY" : 2,
|
|
||||||
"scaleZ" : 2,
|
|
||||||
"rotationW" : 0.9238796,
|
|
||||||
"rotationX" : 0.3826834,
|
|
||||||
"rotationY" : 0,
|
|
||||||
"rotationZ" : 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type" : "CUBE",
|
|
||||||
"positionX" : -7.2,
|
|
||||||
"positionY" : -1,
|
|
||||||
"positionZ" : 3,
|
|
||||||
"scaleX" : 0.3,
|
|
||||||
"scaleY" : 1.5,
|
|
||||||
"scaleZ" : 3,
|
|
||||||
"rotationW" : 1,
|
|
||||||
"rotationX" : 0,
|
|
||||||
"rotationY" : 0,
|
|
||||||
"rotationZ" : 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type" : "CUBE",
|
|
||||||
"positionX" : -7.2,
|
|
||||||
"positionY" : 0.4,
|
|
||||||
"positionZ" : 3,
|
|
||||||
"scaleX" : 0.3,
|
|
||||||
"scaleY" : 2,
|
|
||||||
"scaleZ" : 2,
|
|
||||||
"rotationW" : 0.9238796,
|
|
||||||
"rotationX" : 0.3826834,
|
|
||||||
"rotationY" : 0,
|
|
||||||
"rotationZ" : 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type" : "CUBE",
|
|
||||||
"positionX" : -1.5,
|
|
||||||
"positionY" : -1,
|
|
||||||
"positionZ" : 5.7,
|
|
||||||
"scaleX" : 5.5,
|
|
||||||
"scaleY" : 1.5,
|
|
||||||
"scaleZ" : 0.3,
|
|
||||||
"rotationW" : 1,
|
|
||||||
"rotationX" : 0,
|
|
||||||
"rotationY" : 0,
|
|
||||||
"rotationZ" : 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type" : "CUBE",
|
|
||||||
"positionX" : 6.75,
|
|
||||||
"positionY" : -1,
|
|
||||||
"positionZ" : 5.7,
|
|
||||||
"scaleX" : 0.75,
|
|
||||||
"scaleY" : 1.5,
|
|
||||||
"scaleZ" : 0.3,
|
|
||||||
"rotationW" : 1,
|
|
||||||
"rotationX" : 0,
|
|
||||||
"rotationY" : 0,
|
|
||||||
"rotationZ" : 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type" : "CUBE",
|
|
||||||
"positionX" : 0,
|
|
||||||
"positionY" : -2.6,
|
|
||||||
"positionZ" : 3,
|
|
||||||
"scaleX" : 7.5,
|
|
||||||
"scaleY" : 0.2,
|
|
||||||
"scaleZ" : 3,
|
|
||||||
"rotationW" : 1,
|
|
||||||
"rotationX" : 0,
|
|
||||||
"rotationY" : 0,
|
|
||||||
"rotationZ" : 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type" : "CUBE",
|
|
||||||
"positionX" : 0,
|
|
||||||
"positionY" : 1.3,
|
|
||||||
"positionZ" : 4.4,
|
|
||||||
"scaleX" : 7.5,
|
|
||||||
"scaleY" : 0.2,
|
|
||||||
"scaleZ" : 1.8,
|
|
||||||
"rotationW" : 0.9570922,
|
|
||||||
"rotationX" : 0.2897836,
|
|
||||||
"rotationY" : 0,
|
|
||||||
"rotationZ" : 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type" : "CUBE",
|
|
||||||
"positionX" : 0,
|
|
||||||
"positionY" : 1.3,
|
|
||||||
"positionZ" : 1.6,
|
|
||||||
"scaleX" : 7.5,
|
|
||||||
"scaleY" : 0.2,
|
|
||||||
"scaleZ" : 1.8,
|
|
||||||
"rotationW" : 0.9570922,
|
|
||||||
"rotationX" : -0.2897836,
|
|
||||||
"rotationY" : 0,
|
|
||||||
"rotationZ" : 0
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
assets/Models/objects/crate2.glb
Normal file
BIN
assets/Models/objects/crate2.glb
Normal file
Binary file not shown.
Binary file not shown.
11
assets/Models/objects/texturemap.json
Normal file
11
assets/Models/objects/texturemap.json
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"textureMap": {
|
||||||
|
"Models/objects/crate2.glb": [
|
||||||
|
{
|
||||||
|
"meshName" : "Cube",
|
||||||
|
"diffuse" : "/Textures/woodplanks1.png",
|
||||||
|
"isDefault" : true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -742,6 +742,8 @@ Fix SSBO implementation misusing BufferUtils
|
|||||||
Massive entity spawning refactor to collapse entity type permutations
|
Massive entity spawning refactor to collapse entity type permutations
|
||||||
Move AttachUtils package
|
Move AttachUtils package
|
||||||
Move Scene package
|
Move Scene package
|
||||||
|
Crate object
|
||||||
|
Data cleanup
|
||||||
|
|
||||||
|
|
||||||
# TODO
|
# TODO
|
||||||
|
|||||||
@ -39,6 +39,7 @@ public class ContentSerialization {
|
|||||||
for(Entity entity : entities){
|
for(Entity entity : entities){
|
||||||
if(!CreatureUtils.hasControllerPlayerId(entity)){
|
if(!CreatureUtils.hasControllerPlayerId(entity)){
|
||||||
EntityType type = CommonEntityUtils.getEntityType(entity);
|
EntityType type = CommonEntityUtils.getEntityType(entity);
|
||||||
|
if(type != null){
|
||||||
switch(type){
|
switch(type){
|
||||||
case CREATURE: {
|
case CREATURE: {
|
||||||
EntitySerialization serializedEntity = new EntitySerialization();
|
EntitySerialization serializedEntity = new EntitySerialization();
|
||||||
@ -79,6 +80,7 @@ public class ContentSerialization {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return rVal;
|
return rVal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user