Obtaining the skeleton for weight painting - eArmada8/gust_stuff GitHub Wiki
Obtaining the skeleton for weight painting
Here is a basic tutorial on how to get the skeleton into of Blender for folks who want to preview how meshes change with animation and/or weight painting. This tutorial assumes you otherwise know how to use G1M exporter itself.
Skeletal rigging and weight painting
For weight painting, you will want to rig your meshes to the skeleton. We will not be using the actual meshes in the glTF file because they cannot be exported.
-
Obtain and unpack your model. I will be decompiling Ryza's default outfit (pc00a.elixir.gz).
-
Double-click g1m_to_basic_gltf.py to generate a glTF model from PC00A_MODEL_default.g1m.
NOTE: Instead I actually recommend running g1m_to_basic_gltf.py from the command line. Press Win-R, type "cmd" and change directories to your work folder, then type: python g1m_to_basic_gltf.py
BONUS: As of g1m exporter 1.3.4, if you also have textures and g1t.json present in the folder with the g1m files, the gltf will have texture assignments and you can preview the model with textures in Blender! Keep in mind that Blender cannot read BC7 textures (used in Ryza 3), so you will need to convert them to BC1 or BC3 if you want to see them in Blender.
-
Open the glTF file (PC00A_MODEL_default.gltf). (File menu -> Import -> glTF (.glb + .gltf)) You can hide or delete the glTF meshes, they cannot be exported. I generally just delete them. I also hide the joints, so you can clearly see the bones and mesh.
-
Load your meshes into Blender. (File menu -> Import -> 3DMigoto raw buffers (.vb + .ib)) The meshes are in {Work Folder}/meshes/. These are the meshes you can make changes to.
-
Select all your meshes (in the list on the upper right, click the top one, then shift-click the bottom one). Then SHIFT-click on one of the bones (in the scene, NOT on the list). You should see the meshes outlined in red, and the skeleton outlined in orange. Press Ctrl-P to parent, and select "Armature Deform." Do NOT pick any of the "With..." options.
The model is rigged! You can now do what you need to do.