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
297 stars 65 forks source link

Unique Skeleton - Option to choose reference skeleton of project #522

Closed foxuhound closed 1 month ago

foxuhound commented 1 month ago

Hello, currently bodyslide works primarily on humanoid PC/NPC. but with regards to creatures or races with unique skeletons, it would need a workaround for it to function correctly due to the limitation of Reference Skeleton.

Below is an example of using OutfitStudio/BodySlide on a creature Draugr with the default humanoid reference skeleton: draugr bodyslide

settings default

build defskel

the resulting mesh after build is distorted due to the reference skeleton.

This can be solved by using a different reference skeleton as seen on the pictures below: copied the draugr skeleton into res\ folder and renamed to draugr_skeletonf.nif settings

build draugrskel

the resulting mesh after build is working as expected.

Requested Feature: would it be possible to add an option for a project to specify skeleton to be used for each individual project either an option to 'not force' the reference skeleton into build and leaving the existing bones that came with the mesh or an option to have additional save settings that would specify the skeleton it will be built with like in the picture below: saveas

an example of a .osp output adding a tag ReferenceSkeleton

<?xml version="1.0" encoding="UTF-8"?>
<SliderSetInfo version="1">
    <SliderSet name="New Outfit">
        <DataFolder>New Outfit</DataFolder>
        <SourceFile>draugrmale.nif</SourceFile>
        <OutputPath>meshes\actors\draugr\character assets</OutputPath>
        <OutputFile GenWeights="false">draugrmale</OutputFile>

        <!-- <ReferenceSkeleton>res\draugr_skeletonf.nif</ReferenceSkeleton> -->

        <Shape target="ArmorWaist01">ArmorWaist01</Shape>
        <Shape target="Body_Male_Naked">Body_Male_Naked</Shape>
        <Slider name="New Slider" invert="false" default="0">
            <Data name="Body_Male_NakedNew Slider" target="Body_Male_Naked" local="true">draugrmale.osd\Body_Male_NakedNew Slider</Data>
        </Slider>
    </SliderSet>
</SliderSetInfo>

with this feature, bodyslide can also be used on: creatures like werewolf, draugr, bear, etc.. mounts custom races like supermutant (fallout) or other custom races with a unique skeleton

also i think this can be applied to separate male and female build?

*i usually mod for fallout new vegas.

ousnius commented 1 month ago

@foxuhound BodySlide does not touch the NIF file other than modifying vertex positions and normals/tangents. It doesn't even load the reference skeleton.

So all you need to do is do your edits in Outfit Studio using the correct skeleton. For end users of your BodySlide project, the selection won't matter.