From f5275b2abd082a1fbd86bb8881dd7064a9c8cfdc Mon Sep 17 00:00:00 2001 From: yyc12345 Date: Fri, 9 Oct 2020 21:26:17 +0800 Subject: [PATCH] WIP adding block prototype --- ballance_blender_plugin/json/BasicBlock.json | 750 +++++++++++++++++++ 1 file changed, 750 insertions(+) diff --git a/ballance_blender_plugin/json/BasicBlock.json b/ballance_blender_plugin/json/BasicBlock.json index 59b837b..8649331 100644 --- a/ballance_blender_plugin/json/BasicBlock.json +++ b/ballance_blender_plugin/json/BasicBlock.json @@ -643,5 +643,755 @@ } ] } + }, + { + "Type": "NormalOutterCorner", + "BindingDisplayTexture": "NormalOutterCorner.png", + "UnitSize": "Small", + "ExpandType": "Static", + "InitColumnDirection": "PositiveX", + "DefaultSideConfig": { + "UseTwoDTop": true, + "UseTwoDRight": false, + "UseTwoDBottom": false, + "UseTwoDLeft": true, + "UseThreeDTop": true, + "UseThreeDBottom": false + }, + "ThreeDTopFace": { + "Vertices": [ + "0,0,0;;;", + "2.5,0,0;;;", + "2.5,2.5,0;;;", + "0,2.5,0;;;" + ], + "UVs": [ + "0,0.5;;", + "0,1;;", + "0.5,1;;", + "1,0.5;;", + "0.5,1;;", + "1,1;;" + ], + "Faces": [ + { + "Type": "TRIANGLE", + "P1": 0, + "P2": 1, + "P3": 2, + "Textures": "FloorTopFlat" + }, + { + "Type": "TRIANGLE", + "P1": 0, + "P2": 2, + "P3": 3, + "Textures": "FloorTopFlat" + } + ] + }, + "ThreeDBottomFace": { + "Vertices": [ + "2.5,0,-5;;;-d3", + "2.5,2.5,-5;;;-d3", + "0,2.5,-5;;;-d3", + "0,0,-5;;;-d3" + ], + "UVs": [ + "0,0.5;;", + "0.5,0.5;;", + "0.5,0;;-d1", + "0,0;;-d1" + ], + "Faces": [ + { + "Type": "RECTANGLE", + "P1": 3, + "P2": 2, + "P3": 1, + "P4": 0, + "Textures": "FloorTopBorderless" + } + ] + }, + "TwoDTopSide": { + "Vertices": [ + "0,0,-5;;;-d3", + "0,0,0;;;", + "0,2.5,0;;;", + "0,2.5,-5;;;-d3" + ], + "UVs": [ + "1,0;+d3;", + "0,0;;", + "0,0.5;;", + "1,0.5;+d3;" + ], + "Faces": [ + { + "Type": "RECTANGLE", + "P1": 0, + "P2": 1, + "P3": 2, + "P4": 3, + "Textures": "FloorSide" + } + ] + }, + "TwoDRightSide": { + "Vertices": [ + "2.5,2.5,-5;;;-d3", + "0,2.5,-5;;;-d3", + "0,2.5,0;;;", + "2.5,2.5,0;;;" + ], + "UVs": [ + "1,0;+d3;", + "1,0.5;+d3;", + "0,0.5;;", + "0,0;;" + ], + "Faces": [ + { + "Type": "RECTANGLE", + "P1": 0, + "P2": 1, + "P3": 2, + "P4": 3, + "Textures": "FloorTopBorderless" + } + ] + }, + "TwoDBottomSide": { + "Vertices": [ + "2.5,0,-5;;;-d3", + "2.5,2.5,-5;;;-d3", + "2.5,2.5,0;;;", + "2.5,0,0;;;" + ], + "UVs": [ + "1,0;+d3;", + "1,0.5;+d3;", + "0,0.5;;", + "0,0;;" + ], + "Faces": [ + { + "Type": "RECTANGLE", + "P1": 0, + "P2": 1, + "P3": 2, + "P4": 3, + "Textures": "FloorTopBorderless" + } + ] + }, + "TwoDLeftSide": { + "Vertices": [ + "2.5,0,0;;;", + "2.5,0,-5;;;-d3", + "0,0,-5;;;-d3", + "0,0,0;;;" + ], + "UVs": [ + "0,0.5;;", + "1,0.5;+d3;", + "1,0;+d3;", + "0,0;;" + ], + "Faces": [ + { + "Type": "RECTANGLE", + "P1": 3, + "P2": 2, + "P3": 1, + "P4": 0, + "Textures": "FloorSide" + } + ] + }, + "TwoDTopSideExpand": { + "Vertices": [ + "0,0,-5;;;-d3", + "0,2.5,-5;;;-d3", + "0,2.5,-2.5;;;", + "0,0,-2.5;;;", + "0,0,0;;;", + "0,2.5,0;;;" + ], + "UVs": [ + "0.5,0.5;;", + "0.5,0;;", + "0,0;;", + "0,0.5;;", + "0,0;;", + "0,0.5;;", + "0.5,0.5;+d3;", + "0.5,0;+d3;" + ], + "Faces": [ + { + "Type": "RECTANGLE", + "P1": 2, + "P2": 3, + "P3": 4, + "P4": 5, + "Textures": "FloorTopBorder" + }, + { + "Type": "RECTANGLE", + "P1": 3, + "P2": 2, + "P3": 1, + "P4": 0, + "Textures": "FloorTopBorderless" + } + ] + }, + "TwoDRightSideExpand": null, + "TwoDBottomSideExpand": null, + "TwoDLeftSideExpand": { + "Vertices": [ + "2.5,0,-5;;;-d3", + "0,0,-5;;;-d3", + "0,0,-2.5;;;", + "2.5,0,-2.5;;;", + "2.5,0,0;;;", + "0,0,0;;;" + ], + "UVs": [ + "0.5,0.5;;", + "0.5,0;;", + "0,0;;", + "0,0.5;;", + "0,0;;", + "0,0.5;;", + "0.5,0.5;+d3;", + "0.5,0;+d3;" + ], + "Faces": [ + { + "Type": "RECTANGLE", + "P1": 2, + "P2": 3, + "P3": 4, + "P4": 5, + "Textures": "FloorTopBorder" + }, + { + "Type": "RECTANGLE", + "P1": 3, + "P2": 2, + "P3": 1, + "P4": 0, + "Textures": "FloorTopBorderless" + } + ] + } + }, + { + "Type": "SinkInnerCorner", + "BindingDisplayTexture": "SinkInnerCorner.png", + "UnitSize": "Small", + "ExpandType": "Static", + "InitColumnDirection": "PositiveX", + "DefaultSideConfig": { + "UseTwoDTop": false, + "UseTwoDRight": false, + "UseTwoDBottom": false, + "UseTwoDLeft": false, + "UseThreeDTop": true, + "UseThreeDBottom": false + }, + "ThreeDTopFace": { + "Vertices": [ + "2.5,0,-0.7;;;", + "2.5,2.5,0;;;", + "0,0,-0.7;;;", + "0,2.5,-0.7;;;" + ], + "UVs": [ + "0.5,1;;", + "0,1;;", + "0.5,0.5;;", + "0.5,1;;", + "0.5,0.5;;", + "1,1;;" + ], + "Faces": [ + { + "Type": "TRIANGLE", + "P1": 0, + "P2": 1, + "P3": 2, + "Textures": "FloorTopProfil" + }, + { + "Type": "TRIANGLE", + "P1": 3, + "P2": 2, + "P3": 1, + "Textures": "FloorTopProfil" + } + ] + }, + "ThreeDBottomFace": { + "Vertices": [ + "2.5,0,-5;;;-d3", + "2.5,2.5,-5;;;-d3", + "0,2.5,-5;;;-d3", + "0,0,-5;;;-d3" + ], + "UVs": [ + "0,0.5;;", + "0.5,0.5;;", + "0.5,0;;-d1", + "0,0;;-d1" + ], + "Faces": [ + { + "Type": "RECTANGLE", + "P1": 3, + "P2": 2, + "P3": 1, + "P4": 0, + "Textures": "FloorTopBorderless" + } + ] + }, + "TwoDTopSide": { + "Vertices": [ + "0,0,-0.7;;;", + "0,2.5,-0.7;;;", + "0,2.5,-5;;;-d3", + "0,0,-5;;;-d3" + ], + "UVs": [ + "0.14,0;;", + "0.14,0.5;;", + "1,0.5;+d3;", + "1,0;+d3;" + ], + "Faces": [ + { + "Type": "RECTANGLE", + "P1": 0, + "P2": 1, + "P3": 2, + "P4": 3, + "Textures": "FloorTopBorderless" + } + ] + }, + "TwoDRightSide": { + "Vertices": [ + "2.5,2.5,0;;;", + "2.5,2.5,-5;;;-d3", + "0,2.5,-5;;;-d3", + "0,2.5,-0.7;;;" + ], + "UVs": [ + "0,0;;", + "1,0;+d3;", + "1,0.5;+d3;", + "0.14,0.5;;" + ], + "Faces": [ + { + "Type": "RECTANGLE", + "P1": 0, + "P2": 1, + "P3": 2, + "P4": 3, + "Textures": "FloorTopBorderless" + } + ] + }, + "TwoDBottomSide": { + "Vertices": [ + "2.5,2.5,0;;;", + "2.5,0,-0.7;;;", + "2.5,0,-5;;;-d3", + "2.5,2.5,-5;;;-d3" + ], + "UVs": [ + "0,0.5;;", + "0.14,0;;", + "1,0;+d3;", + "1,0.5;+d3;" + ], + "Faces": [ + { + "Type": "RECTANGLE", + "P1": 0, + "P2": 1, + "P3": 2, + "P4": 3, + "Textures": "FloorTopBorderless" + } + ] + }, + "TwoDLeftSide": { + "Vertices": [ + "0,0,-0.7;;;", + "0,0,-5;;;-d3", + "2.5,0,-5;;;-d3", + "2.5,0,-0.7;;;" + ], + "UVs": [ + "0.14,0.5;;", + "1,0.5;+d3;", + "1,0;+d3;", + "0.14,0;;" + ], + "Faces": [ + { + "Type": "RECTANGLE", + "P1": 0, + "P2": 1, + "P3": 2, + "P4": 3, + "Textures": "FloorTopBorderless" + } + ] + }, + "TwoDTopSideExpand": null, + "TwoDRightSideExpand": null, + "TwoDBottomSideExpand": null, + "TwoDLeftSideExpand": null + }, + { + "Type": "NormalInnerCorner", + "BindingDisplayTexture": "NormalInnerCorner.png", + "UnitSize": "Small", + "ExpandType": "Static", + "InitColumnDirection": "PositiveX", + "DefaultSideConfig": { + "UseTwoDTop": false, + "UseTwoDRight": false, + "UseTwoDBottom": false, + "UseTwoDLeft": false, + "UseThreeDTop": true, + "UseThreeDBottom": false + }, + "ThreeDTopFace": { + "Vertices": [ + "2.5,0,0;;;", + "2.5,2.5,0;;;", + "0,0,0;;;", + "0,2.5,0;;;" + ], + "UVs": [ + "0.5,1;;", + "0,1;;", + "0.5,0.5;;", + "0.5,1;;", + "0.5,0.5;;", + "1,1;;" + ], + "Faces": [ + { + "Type": "TRIANGLE", + "P1": 0, + "P2": 1, + "P3": 2, + "Textures": "FloorTopFlat" + }, + { + "Type": "TRIANGLE", + "P1": 3, + "P2": 2, + "P3": 1, + "Textures": "FloorTopFlat" + } + ] + }, + "ThreeDBottomFace": { + "Vertices": [ + "2.5,0,-5;;;-d3", + "2.5,2.5,-5;;;-d3", + "0,2.5,-5;;;-d3", + "0,0,-5;;;-d3" + ], + "UVs": [ + "0,0.5;;", + "0.5,0.5;;", + "0.5,0;;-d1", + "0,0;;-d1" + ], + "Faces": [ + { + "Type": "RECTANGLE", + "P1": 3, + "P2": 2, + "P3": 1, + "P4": 0, + "Textures": "FloorTopBorderless" + } + ] + }, + "TwoDTopSide": { + "Vertices": [ + "0,0,0;;;", + "0,2.5,0;;;", + "0,2.5,-5;;;-d3", + "0,0,-5;;;-d3" + ], + "UVs": [ + "0,0;;", + "0,0.5;;", + "1,0.5;+d3;", + "1,0;+d3;" + ], + "Faces": [ + { + "Type": "RECTANGLE", + "P1": 0, + "P2": 1, + "P3": 2, + "P4": 3, + "Textures": "FloorTopBorderless" + } + ] + }, + "TwoDRightSide": { + "Vertices": [ + "2.5,2.5,0;;;", + "2.5,2.5,-5;;;-d3", + "0,2.5,-5;;;-d3", + "0,2.5,0;;;" + ], + "UVs": [ + "0,0;;", + "1,0;+d3;", + "1,0.5;+d3;", + "0,0.5;;" + ], + "Faces": [ + { + "Type": "RECTANGLE", + "P1": 0, + "P2": 1, + "P3": 2, + "P4": 3, + "Textures": "FloorTopBorderless" + } + ] + }, + "TwoDBottomSide": { + "Vertices": [ + "2.5,2.5,0;;;", + "2.5,0,0;;;", + "2.5,0,-5;;;-d3", + "2.5,2.5,-5;;;-d3" + ], + "UVs": [ + "0,0.5;;", + "0,0;;", + "1,0;+d3;", + "1,0.5;+d3;" + ], + "Faces": [ + { + "Type": "RECTANGLE", + "P1": 0, + "P2": 1, + "P3": 2, + "P4": 3, + "Textures": "FloorTopBorderless" + } + ] + }, + "TwoDLeftSide": { + "Vertices": [ + "0,0,0;;;", + "0,0,-5;;;-d3", + "2.5,0,-5;;;-d3", + "2.5,0,0;;;" + ], + "UVs": [ + "0,0.5;;", + "1,0.5;+d3;", + "1,0;+d3;", + "0,0;;" + ], + "Faces": [ + { + "Type": "RECTANGLE", + "P1": 0, + "P2": 1, + "P3": 2, + "P4": 3, + "Textures": "FloorTopBorderless" + } + ] + }, + "TwoDTopSideExpand": null, + "TwoDRightSideExpand": null, + "TwoDBottomSideExpand": null, + "TwoDLeftSideExpand": null + }, + { + "Type": "Flat", + "BindingDisplayTexture": "Flat.png", + "UnitSize": "Small", + "ExpandType": "Freedom", + "InitColumnDirection": "PositiveY", + "DefaultSideConfig": { + "UseTwoDTop": false, + "UseTwoDRight": false, + "UseTwoDBottom": false, + "UseTwoDLeft": false, + "UseThreeDTop": true, + "UseThreeDBottom": false + }, + "ThreeDTopFace": { + "Vertices": [ + "0,0,0;;;", + "2.5,0,0;+d2;;", + "2.5,2.5,0;+d2;+d1;", + "0,2.5,0;;+d1;" + ], + "UVs": [ + "0,0.5;;", + "0,0;;-d2", + "0.5,0;+d1;-d2", + "0.5,0.5;+d1;" + ], + "Faces": [ + { + "Type": "RECTANGLE", + "P1": 0, + "P2": 1, + "P3": 2, + "P4": 3, + "Textures": "FloorTopBorderless" + } + ] + }, + "ThreeDBottomFace": { + "Vertices": [ + "0,0,-5;;;-d3", + "2.5,0,-5;+d2;;-d3", + "2.5,2.5,-5;+d2;+d1;-d3", + "0,2.5,-5;;+d1;-d3" + ], + "UVs": [ + "0,0.5;;", + "0,0;;-d2", + "0.5,0;+d1;-d2", + "0.5,0.5;+d1;" + ], + "Faces": [ + { + "Type": "RECTANGLE", + "P1": 3, + "P2": 2, + "P3": 1, + "P4": 0, + "Textures": "FloorTopBorderless" + } + ] + }, + "TwoDTopSide": { + "Vertices": [ + "0,0,0;;;", + "0,2.5,0;;+d1;", + "0,2.5,-5;;+d1;-d3", + "0,0,-5;;;-d3" + ], + "UVs": [ + "0,0;;", + "0,0.5;;+d1", + "1,0.5;+d3;+d1", + "1,0;+d3;" + ], + "Faces": [ + { + "Type": "RECTANGLE", + "P1": 0, + "P2": 1, + "P3": 2, + "P4": 3, + "Textures": "FloorTopBorderless" + } + ] + }, + "TwoDRightSide": { + "Vertices": [ + "2.5,2.5,0;+d2;+d1;", + "2.5,2.5,-5;+d2;+d1;-d3", + "0,2.5,-5;;+d1;-d3", + "0,2.5,0;;+d1;" + ], + "UVs": [ + "0,0;;-d2", + "1,0;+d3;-d2", + "1,0.5;+d3;", + "0,0.5;;" + ], + "Faces": [ + { + "Type": "RECTANGLE", + "P1": 0, + "P2": 1, + "P3": 2, + "P4": 3, + "Textures": "FloorTopBorderless" + } + ] + }, + "TwoDBottomSide": { + "Vertices": [ + "2.5,2.5,0;+d2;+d1;", + "2.5,0,0;+d2;;", + "2.5,0,-5;+d2;;-d3", + "2.5,2.5,-5;+d2;+d1;-d3" + ], + "UVs": [ + "0,0.5;;+d1", + "0,0;;", + "1,0;+d3;", + "1,0.5;+d3;+d1" + ], + "Faces": [ + { + "Type": "RECTANGLE", + "P1": 0, + "P2": 1, + "P3": 2, + "P4": 3, + "Textures": "FloorTopBorderless" + } + ] + }, + "TwoDLeftSide": { + "Vertices": [ + "0,0,0;;;", + "0,0,-5;;;-d3", + "2.5,0,-5;+d2;;-d3", + "2.5,0,0;+d2;;" + ], + "UVs": [ + "0,0.5;;", + "1,0.5;+d3;", + "1,0;+d3;-d2", + "0,0;;-d2" + ], + "Faces": [ + { + "Type": "RECTANGLE", + "P1": 0, + "P2": 1, + "P3": 2, + "P4": 3, + "Textures": "FloorTopBorderless" + } + ] + }, + "TwoDTopSideExpand": null, + "TwoDRightSideExpand": null, + "TwoDBottomSideExpand": null, + "TwoDLeftSideExpand": null } ] \ No newline at end of file