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
167 stars 15 forks source link

Exported dragon mesh exploding #194

Closed andperks6 closed 8 months ago

andperks6 commented 8 months ago

I'm trying to reduce the number of vertices on some obscenely high poly dragon meshes. The resulting mesh appears fine in nifSkope (need to enable Export Modifiers to save the modified vertices) but in game looks a lot like the 'exploding mesh' bug mentioned often with outfit meshes. I find it odd it happens here but assume some skinning data was lost/broken in the export.

I've tried a the suggestions I could find regarding

I don't see a new group called "*UNWEIGHTED_VERTICES*" which leads me to think vertices are weighted but the vertex weights all show as 0 in the NiSkinPartition Can you help troubleshoot this? image

download assets here the import and export nif, also included the attempted reference skeleton

BadDogSkyrim commented 8 months ago

Had a look but your original nif claims to be created with outfit studio and the other one was run through Nif Optimizer. Did you try with the export straight from Blender?

andperks6 commented 8 months ago

apologies, I may have provided an export mesh I made further attempts to fix. I'll show the full workflow and give an export file straight from blender

first, importing without the 'create bones' and 'rename bones' image results in a blender object that looks like this image

Which I then add a decimate modifier and copying to the selected items. Then after select hierarchy at the scene root, with only 'export modifiers' selected image

this is the resulting file Let me know if there are any other steps you want me to take for troubleshooting

BadDogSkyrim commented 8 months ago

Import looks ok. The loose empties just mean that the nif includes bone nodes that aren't used.

Export makes me think you have an old pyNifly. that "Use Blender orientation" option should be a check box, and is in the latest version. Also you don't need "Export modifiers" tho I don't think it will break anything.

Check that you've got the latest version. I'll look into this more in the AM.

andperks6 commented 8 months ago

That indeed was the issue. After using the latest release (and disabling rename bones) the mesh exported with no issues.

I had do hunt down where I downloaded an outdated version since this was an obvious mistake, turns out the download at fallout 4 nexus is for the 10.2 version, fyi.

Thanks for all the help!

BadDogSkyrim commented 8 months ago

K thx.