-
Notifications
You must be signed in to change notification settings - Fork 0
running the program v1
mesh-compiler.exe [file to compile] <path to .format file> <output file name>
[file to compile]
is mandatory other two are optional.
Program can be run with flags:
-f <path to .format file>
-o <output file name>
to pass arguments out of order or skip them entirely.
default <path to .format file>
is .format
default <output file name>
is {file}_{mesh}.mesh
mesh-compiler.exe
then >
symbol will appear at which point you can enter commands in a same manner as passing arguments when running the program:
for example:
> <file to compile> <path to .format file> <output file name>
or with flags:
> <file to compile> -o <output file name>
> q
- closes application
If you run the program with just -v
or --version
version of the mesh compiler will be printed to the console.
Version can be also queried after >
symbol
> --version
v1.1.1
.format
files determine the structure of the output file. Meaning what data to extract from input file and in what order / configuration to write that data to output file. See format file syntax v1.1.x for more information about .format
files.
Single program call can produce numerous output files hence the need for pattern file naming.
Pattern parameters are given in {
}
.
Possible parameters:
-
{file}
- gets replaced by[file to compile]
file name without the extension -
{scene}
- gets replaced by scene name defined internally inside file to compile -
{mesh}
- gets replaced by mesh name defined internally inside file to compile
Besides that file can be named normally.
{scene}_{mesh}.mesh
projekt-{mesh}.mesh
{file}.mesh
Using {mesh}
in file name is highly advised unless you are sure that file contains only one mesh.
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
: