BadDogSkyrim / PyNifly

Export/Import tools between Blender and the Nif format, using Bodyslide/Outfit Studio's Nifly layer. Supports Skyrim LE, Skyrim SE, Fallout 4, Fallout New Vegas, Fallout 76, and Fallout 3.
GNU General Public License v3.0
178 stars 16 forks source link

Mesh splits in-half on export? #118

Closed CheeriHoney closed 2 years ago

CheeriHoney commented 2 years ago

I'm not completely sure if this is a bug or intentional but whenever I export the head mesh I'm working on it gets split down the middle which obviously makes duplicate vertices and makes shape keys slightly problematic in some areas, especially since they can't be mirrored when this happens (it is split perfectly down the middle on x-axis)

on export: the vert count increases by 200+, removing the duplicate vertices and exporting again just causes the problem to repeat itself

BadDogSkyrim commented 2 years ago

Shape keys should work, I hope, because they're made after the split. The tri file should always match whatever was exported.

Check your UV and face orientation. I'm guessing you worked on a half-head and mirrored. That will cause a seam if the faces on either side of the centerline either have different UV coordinates or (maybe) have different face orientations.

CheeriHoney commented 2 years ago

it pretty much happens regardless of what I do so I'll just consider it a limitation, I can still make shape keys but mirroring them is a bit inconvenient, but as another possible request, could you add the ability to export shape keys with non vanilla names for fallout 4? I just find it inconvenient that I have to rename them just to export them is all

BadDogSkyrim commented 2 years ago

If you send me the head mesh I'll have a look and tell you what's going on.

In a minute I'll post my cheat sheet for how I make a head. Mirroring the shape keys happens for (almost) free.

Say more about why you need non-vanilla names in FO4. Expressions are run by the engine so you don't need it for them. (Tell me if I'm wrong.) Other shape keys do get exported to the chargen file.

BadDogSkyrim commented 2 years ago

Turns out I wrote up the process already: https://github.com/BadDogSkyrim/PyNifly/wiki/Modding-Process:-Making-a-Head

CheeriHoney commented 2 years ago

non vanilla shape keys can be added and used by the race record for chargen purposes, I'm specifically using them for a custom race, but I've had to export them with vanilla names and use outfit studio to rename the shape keys and export again

I'll also be sure to check your guide out as it may prove helpful for me, so thanks for that

Here is the head mesh as-well, you'll have to excuse the bad normals, it seems to mess those up too even when I try to fix them https://www.mediafire.com/file/9nzyby98dvcvtyw/Head.nif/file

BadDogSkyrim commented 2 years ago

The blender file will be more helpful.

Any shape key that is not recognized as an expression (and doesn't have a "*" or ">" in front) is exported to the chargen tri file.

EDIT: Give me a few days with this, I'm away from my gaming computer.

BadDogSkyrim commented 2 years ago

Had a look. As I said upthread, UV can cause a seam to be split. In your case, the centerline verts are in different places on the UV, left side vs. right side.