-
Notifications
You must be signed in to change notification settings - Fork 0
field counting rules v1
Different variable type
values exist in different amounts. For example mesh will usually have different amount of vertices than indices.
variable types
can be divided into cointing groups
based on amount of data they will output.
Fields
from different counting groups
cannot be present in the same buffer
definition.
Constants
do not collide with any counting group
and can be added freely to any buffer
definition. With only restriction that buffer
must contain at least one variable type
in order to determine how many times to repeat the constant
.
-
per indice:
-
i
,indice
- indice
-
-
per vertex:
-
v
,vertex
- vertex -
n
,normal
- normal -
t
,tangent
- tangent -
b
,bitangent
- bitangent -
tex_coord
- texture coordinate / uv set 0 -
uv0
- uv set 0 -
uv1
- uv set 1 -
uv2
- uv set 2 -
uv3
- uv set 3 -
uv4
- uv set 3 -
uv5
- uv set 5 -
uv6
- uv set 6 -
uv7
- uv set 7 -
vertex_color0
- vertex color 0 since v1.1.0 -
vertex_color1
- vertex color 1 since v1.1.0 -
vertex_color2
- vertex color 2 since v1.1.0 -
vertex_color3
- vertex color 3 since v1.1.0 -
vertex_color4
- vertex color 4 since v1.1.0 -
vertex_color5
- vertex color 5 since v1.1.0 -
vertex_color6
- vertex color 6 since v1.1.0 -
vertex_color7
- vertex color 7 since v1.1.0
-
Buffers
with field
definitions from per vertex group will write to output file as many entries
as there are vertices.
An entry
is one repetition of all fields
specified in one buffer
in .format
file. In the followig:
; vertex.x vertex.y vertex.z
vertex.x
vertex.y
vertex.z
make up one entry
.
; vertex.x vertex.y vertex.z
Suppose mesh has 100 vertices. The above will output 100×3=300 floating point values (4 bytes each) to the output file. File will have total size of 300×4=1200 bytes.
JSON format structure since v2.2.0
-
bone_id
since v2.1.0 -
bone_weight
since v2.1.0 -
off_matr
,off_matrix
,offset_matr
,offset_matrix
since v2.0.0 -
bone_parent
since v2.3.0 -
bone_child
since v2.3.0 -
m_off_matr
,m_off_matrix
,m_offset_matr
,m_offset_matrix
since v2.2.0 -
m_bone_parent
since v2.3.0 -
m_bone_child
since v2.3.0 -
position_key
since v2.0.0 -
rotation_key
since v2.0.0 -
scale_key
since v2.0.0 -
position_time
,position_timestamp
,position_key_time
,position_key_timestamp
since v2.0.0 -
rotation_time
,rotation_timestamp
,rotation_key_time
,rotation_key_timestamp
since v2.0.0 -
scale_time
,scale_timestamp
,scale_key_time
,scale_key_timestamp
since v2.0.0 -
duration
since v2.0.0 -
ticks_per_second
since v2.0.0
key-words
: