Clean up model format version
Commit 09c60db8
should have incrememnted the model format version but
didn't. Also added "since version x.x" in the model format docs.
This commit is contained in:
parent
f077ca5b5f
commit
678393ccb1
|
@ -1,4 +1,4 @@
|
||||||
.TH FC2D_MODEL 5 "Facecam2D Model Format 0.3 Manual"
|
.TH FC2D_MODEL 5 "Facecam2D Model Format 0.4 Manual"
|
||||||
.
|
.
|
||||||
.SH NAME
|
.SH NAME
|
||||||
fc2d_model \- Facecam2D model file format
|
fc2d_model \- Facecam2D model file format
|
||||||
|
@ -133,24 +133,52 @@ If negative, the part will move in the opposite direction.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
rot_factor, scale_factor
|
rot_factor, scale_factor
|
||||||
|
.ft B
|
||||||
|
(Since version 0.2)
|
||||||
|
.ft
|
||||||
Float: How much the part will rotate/scale.
|
Float: How much the part will rotate/scale.
|
||||||
Default is 1.0.
|
Default is 1.0.
|
||||||
Higher values result in more exaggerated rotation or scaling.
|
Higher values result in more exaggerated rotation or scaling.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
|
offset_factor
|
||||||
|
.ft B
|
||||||
|
(Since version 0.4)
|
||||||
|
.ft
|
||||||
|
float: How much the part will be moved by the offset bind.
|
||||||
|
See
|
||||||
|
.B offset_bind.
|
||||||
|
.
|
||||||
|
.TP
|
||||||
origin
|
origin
|
||||||
|
.ft B
|
||||||
|
(Since version 0.3)
|
||||||
|
.ft
|
||||||
Float Array: Origin (pivot point) of the model defined in
|
Float Array: Origin (pivot point) of the model defined in
|
||||||
normalized coordinates.
|
normalized coordinates.
|
||||||
Default is [0.0, 0.0].
|
Default is [0.0, 0.0].
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
pos_offset, scale_offset
|
pos_offset, scale_offset
|
||||||
|
.ft B
|
||||||
|
(Since version 0.3)
|
||||||
|
.ft
|
||||||
Float Array: Positional offset or scale of a part.
|
Float Array: Positional offset or scale of a part.
|
||||||
Default is [0.0, 0.0] for
|
Default is [0.0, 0.0] for
|
||||||
.B pos_offset
|
.B pos_offset
|
||||||
and [1.0, 1.0] for
|
and [1.0, 1.0] for
|
||||||
.B scale_offset.
|
.B scale_offset.
|
||||||
.
|
.
|
||||||
|
.TP
|
||||||
|
offset_bind
|
||||||
|
.ft B
|
||||||
|
(Since version 0.4)
|
||||||
|
.ft
|
||||||
|
String: Offsets are vectors instead of actual points on the image.
|
||||||
|
You can bind to an offset with this property, which will
|
||||||
|
offset the part's position according to the vector.
|
||||||
|
Possible values: offset-eyes
|
||||||
|
.
|
||||||
.SS textures
|
.SS textures
|
||||||
.TP
|
.TP
|
||||||
file
|
file
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[format]
|
[format]
|
||||||
version_major = 0
|
version_major = 0
|
||||||
version_minor = 3
|
version_minor = 4
|
||||||
|
|
||||||
[model_info]
|
[model_info]
|
||||||
name = "Default-chan"
|
name = "Default-chan"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[format]
|
[format]
|
||||||
version_major = 0
|
version_major = 0
|
||||||
version_minor = 1
|
version_minor = 4
|
||||||
|
|
||||||
[model_info]
|
[model_info]
|
||||||
name = "Test Model"
|
name = "Test Model"
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#define BUFFER_SIZE_TEXTURE 16777220 // 16 MiB
|
#define BUFFER_SIZE_TEXTURE 16777220 // 16 MiB
|
||||||
|
|
||||||
#define SUPPORTED_MODEL_MAJOR 0
|
#define SUPPORTED_MODEL_MAJOR 0
|
||||||
#define SUPPORTED_MODEL_MINOR 3
|
#define SUPPORTED_MODEL_MINOR 4
|
||||||
|
|
||||||
void textureFromArchive(zip_t* archive, const char* path, ModelPart* part, size_t slot, std::string triggerName) {
|
void textureFromArchive(zip_t* archive, const char* path, ModelPart* part, size_t slot, std::string triggerName) {
|
||||||
zip_file_t* textureFile = zip_fopen(archive, path, 0);
|
zip_file_t* textureFile = zip_fopen(archive, path, 0);
|
||||||
|
|
Loading…
Reference in a new issue