Joschuka / fmt_g1m

GNU General Public License v3.0
24 stars 13 forks source link
noesis python

FMT_G1M

License: GPL v3

A Noesis plugin to import G1M model files, G1T texture file, G1A and G2A skeletal animation files.

THIS SCRIPT IS DEPRECATED ! USE https://github.com/Joschuka/Project-G1M INSTEAD !

Setup

Simply put the python files in the plugins/python/ folder, next to the others.

This plugin is still experimental, some models and animations may not work. For some particular models, it may take some time to load and it may seem that Noesis crashed but it will work eventually. If there isn't any error, just wait.

Options

You can find the different options at the beginning of the fmt_g1m.py file. If you want to hide some meshes or see some info about the model, go to Tools/Data Viewer. You may want to close the Data Viewer before loading another model since it will take more time to load. Some of the options have console commands equivalents to make exporting easier, you can find them at the beginning of the file.

Display the Noesis log. It will show some progress and information about the import.

Fix the cloth vertices' positions. Clothes will only be well-placed in T-pose and won't be animated since they are supposed to be simulated at runtime.

Render the cloth meshes. You may want to put it to False when previewing animations for example.

Render the cloth drivers and physics bones.

Enable choosing a g1t texture file. Choosing a wrong one will lead to errors. Only single g1t files are supported for now, if the model needs several ones extract the g1t and the g1m separately.

Enable choosing another g1m which contains the skeleton. Choosing a wrong one or not choosing one for a model needing one will lead to errors.

Only Load the skeleton.

Enable choosing an Oid.bin file which contains the bone names for the skeleton.

Load the first g1m in the same folder as a skeleton. Put it to False when using model merging.

Enable choosing a g1a/g2a file which contains animation. Choosing a wrong one will display an error message. You can add several ones, one after another.

Enable choosing a folder from which all g1a/g2a files will be loaded.

Enable choosing a folder from which contains morph targets/shapekeys. You can choose the offset between these with the G1HOffset parameter.

Model merging

If you want to combine models, follow these steps :

The model merger can also be used to extract textures from several g1t files at the same time.

If you only want the t-posed combined model, put the MERGE_BONES option to 1 at the top of the merge script, it will combine the skeletons. As of now it doesn't work for animations so keep it to 0 if you want combined meshes animated, it will have some duplicated bones. Textures will be duplicated too if the same g1t was use for all the models, I will correct it in the future

License

This library is available under GPL v3 license. (See LICENSE.md)