PMXUtil
A partial PMX loader and Writer written in Rust
What can this crate do
- Parse PMX 2.0/2.1 header
- Parse PMX 2.0/2.1 Model Info
- Name
- English Name
- Comment
- English Comment
- Parse vertices Information
- Parse Material Information
- Parse Bone Information
- Parse Morph Information
- Write PMX 2.0 header
- Write Model info
- Write vertices
- Write Materials
- Write Bone 12 Write Morph
WIP
- Implement Display trait
- Parse RigidBody Information
- Parse Joint
- Parse SoftBody
How to Use
1. Import
extern crate PMXUtil;
use PMXLoader;
2. Create loader instance and read
let mut loader= open;
let header = loader.get_header;
println!;
let = loader.read_pmx_model_info;
print!;
let =ns.read_pmx_vertices;
print!;
let = ns.read_pmx_faces;
println!;
let = ns.read_texture_list;
println!;
let = ns.read_pmx_materials;
println!;
3 Create Writer instance and write
this library always write text as UTF8 byte stream
let mut writer = begin_writer;
writer.set_model_info;
writer.add_vertices;
writer.add_faces;
writer.add_textures;
writer.add_materials;
writer.add_bones;
writer.add_morphs;
write;
Note
this crate under construction so outputed pmx file is not valid format because they don't have rigidbody section and joint section more example for https://github.com/t18b219k/PMXViewer_VK