ousnius / BodySlide-and-Outfit-Studio

BodySlide and Outfit Studio, a tool to convert, create, and customize outfits and bodies for Bethesda games.
GNU General Public License v3.0
296 stars 65 forks source link

Exporting .nif yields incorrect weight paint #319

Closed Astolf20377 closed 4 years ago

Astolf20377 commented 4 years ago

Description I weight paint part of my armor to be blue related to pelvis bone. Yet when I export as nif, that part becomes red again. I tried the same with exporting as fbx, and this does not happen. Is this a bug?

How to reproduce

  1. Paint a part of my mesh blue.
  2. Export as Nif.
  3. Load the nif into OS.
  4. View the rig. It becomes red again.

Before Export Blue

After Export and load into OS again. Red

If you wish I can possibly provide the mesh / OS file.

Astolf20377 commented 4 years ago

This is getting really strange! If I paint the whole mesh blue with regards to pelvis bone and export, the whole leg except this region becomes blue, but for some reason this region remains red!

Astolf20377 commented 4 years ago

No matter which bone weight bone I paint this area with respect to, it will always turn out to be red. I have no clue what is causing this. Guess I may need to try another means to weight paint it.

Astolf20377 commented 4 years ago

Is this related to the weight normalization?

ousnius commented 4 years ago

Yes weight normalization. This sounds like normal behavior to me. When you paint the pelvis bone blue, but it's the only thing affecting that area, it will become normalized to 1.0 (red) on export. You may try the live normalization checkbox to the right.

Astolf20377 commented 4 years ago

So, the way to solve it, is to make a few more bones affect that area?

ousnius commented 4 years ago

The area becoming fully assigned to the pelvis bone isn't an error as long as it's the only bone there. You should just try it in-game.

Astolf20377 commented 4 years ago

Yeah but then that metal plate distorted hugely as my character sneak, jump or run. That pelvis plate is supposed to stay in place. Perhaps that is my own design error... Anyway it seems assigning different bones to it works. So thanks a lot! Hopefully I can solve the distortion too.

Astolf20377 commented 4 years ago

Btw you can safely close the issue.

ousnius commented 4 years ago

Yes, you need a spine bone then.