67
edits
No edit summary |
No edit summary |
||
Line 43: | Line 43: | ||
== Technical details == | == Technical details == | ||
The character starts off as a 3D model which has limb parts, an armature and some animations. The model is then exported as glTF | The character starts off as a 3D model which has limb parts, an armature and some animations. The model is then exported as glTF, with '''Custom Properties''' on the primary Armature defining the following properties: | ||
* The exported character model (+Y Up, include animations, do NOT include materials, apply modifiers if applicable) | * The exported character model (+Y Up, include animations, do NOT include materials, apply modifiers if applicable) | ||
Line 59: | Line 59: | ||
* Accessory support - Accessory type + relative origin point translation and quaternion + max amount. | * Accessory support - Accessory type + relative origin point translation and quaternion + max amount. | ||
==== glTF Custom Properties for supported character models ==== | |||
Scale and Unit references '''1x1x1 scale Brick being 1 unit in size in each axis.''' | |||
{| class="wikitable" | {| class="wikitable" | ||
|+ | |+Armature Custom Properties | ||
! | !Property | ||
! | !Type | ||
! | !Mandatory | ||
!Values | |||
!Notes | !Notes | ||
|- | |- | ||
| | |FBLXC.Version | ||
|int | |||
|yes | |||
|1 | |1 | ||
| | |Character model version | ||
|- | |- | ||
| | |FBLXC.Parts | ||
| | |string | ||
|Part | |yes | ||
| | |Part names separated by comma | ||
|Tell the engine about the parts in this model. | |||
This is used to convert the meshes into GameObjects. | |||
Example line: Head,Torso,Arm.L,Arm.R,Leg.L,Leg.R | |||
'''NB! Commas are forbidden in mesh names for this reason!''' | |||
|- | |- | ||
| | |FBLXC.ColorParts | ||
| | |string | ||
| | |no | ||
| | |Part names separated by comma | ||
|Colorable parts list | |||
Example line: Head,Torso,Arm.L,Arm.R,Leg.L,Leg.R | |||
|- | |- | ||
| | |FBLXC.MinScale | ||
| | |float | ||
|Accessory | |yes | ||
| | |1 | ||
|Minimum applicable scale within the character editor | |||
|- | |||
|FBLXC.MaxScale | |||
|float | |||
|yes | |||
|1 | |||
|Maximum applicable scale within the character editor | |||
|- | |||
|FBLXC.UnitHeigth | |||
|int | |||
|yes | |||
|1 | |||
|Character height in game units | |||
|- | |||
|FBLXC.Accessory | |||
|string | |||
|no | |||
|Accessory types separated by comma | |||
|Currently supported accessories: Hat,Face,Tool,Front,Back | |||
|- | |||
|FBLXC.Accessory.Hat.Parent | |||
|string | |||
|yes, if accessory in list | |||
|Accessory parent object | |||
|Default could be Torso | |||
|- | |||
|FBLXC.Accessory.Hat.Origin | |||
|float array, 3 | |||
|yes, if accessory in list | |||
|3D Vector | |||
|Accessory origin relative to the parent | |||
|- | |||
|FBLXC.Accessory.Hat.Quat | |||
|float array, 4 | |||
|no | |||
|4D Quaternion | |||
|Accessory origin rotation relative to the parent | |||
|- | |- | ||
| | |FBLXC.Accessory.Hat.Amount | ||
| | |int | ||
| | |no | ||
| | |Defaults to just one if accessory is defined | ||
|Amount of accessories of type supported. | |||
|- | |- | ||
| | |FBLXC.Texture.TShirt | ||
| | |string | ||
| | |no | ||
| | |Part names separated by comma | ||
|TShirt,Shirt,Pants applicable parts. | |||
The texture specified will only be applied to the listed parts. | |||
|- | |- | ||
| | |FBLXC.Author | ||
| | |string | ||
| | |no | ||
| | |Any text referencing the author | ||
|Custom character author information | |||
|} | |} | ||