Character: Difference between revisions

Jump to navigation Jump to search
1,915 bytes added ,  7 July 2023
no edit summary
(→‎Round6: screenshot)
No edit summary
Line 41: Line 41:
* Parts: Head, Body, HoofLeft, HoofRight, LegLeft, LegRight
* Parts: Head, Body, HoofLeft, HoofRight, LegLeft, LegRight
* Features: 6 colors, Height scale, Hats (manes, horn, etc), Faces (eye color and style), Tools (hoof wields, telekinetic effects), Body (tails, wings, bags etc)
* Features: 6 colors, Height scale, Hats (manes, horn, etc), Faces (eye color and style), Tools (hoof wields, telekinetic effects), Body (tails, wings, bags etc)
== 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. From there, a custom definition file must be created containing...
* The exported character model (+Y Up, include animations, do NOT include materials, apply modifiers if applicable)
* which parts it consists of (Head, Torso...) and their respective bones (BHead, BTorso). Also, must name the root bone (BRoot). Please note that the root bone must be the parent of all other bones. The bones must NOT have the same names as the body parts.
* The character controllers looks for these animations (the tree structure represents fallbacks if not found):
** Idle
*** Sit
** Walk
*** Climb
*** Swim(?)
** Wield
** Jump
* Min and max scale - set both to the same value to disable rescaling in character editor, 1 for no scaling.
* Unit height - Height from the bottom of the foot to the top of the head, used for collider creation.
* Accessory support - Accessory type + relative origin point translation and quaternion + max amount.
{| class="wikitable"
|+Character binary format draft
!Marker
!Length (uint32)
!Contents
!Notes
|-
|ba fb 00
|1
|Version (uint8)
|Format marker for
<code>application/x-freeblox-character</code>
<code>.vfbc</code>
|-
|ba aa 00
|Number of entries
|Part (string) : Mesh Asset ID (string) : Bone (string) : AttachTo (string) : PointOrigin (vec3)
|Character parts
|-
|ba ab 00
|Data length
|Min scale (float) : Max scale (float) : Unit height (float)
|
|-
|ba bf 00
|Number of entries
|Accessory type (enum uint8):Count (uint8):AttachTo (string):PointOrigin (vec3):QuatOrigin(quat)
|
|-
|ba de 00
|Number of entries
|Texture type (enum uint8)
|
|-
|ba cd 00
|String length
|Author information (string)
|
|-
|ba ff 00
|Binary size
|Model file
|glTF binary data
|}
<small>Note 1: <code>:</code> is shorthand for NUL byte (x00).</small>

Navigation menu