KillzXGaming / Switch-Toolbox

A tool to edit many video game file formats
GNU General Public License v3.0
954 stars 154 forks source link

Bones Facing wrong direction in both skeleton and animation exports #175

Open kriNon opened 4 years ago

kriNon commented 4 years ago

So at the moment I am working on exporting Player_Animation.sbfres from Zelda:BOTW.

So I have exported the skeleton as a '.dae' file and the animations as '.smd' files.

Once I import the skeleton into blender it immediately looks wrong, but close to what it should be. All bones are pointing in the Z direction. image

I have found a copy of the same skeleton online but without the issues. It looks like this: image

When I load the animation on either skeleton it looks the same. Both skeletons look like this: https://imgur.com/xqt4wzm Which looks mostly fine, but some of the bones are clearly facing the wrong directions. The positions of the bones look correct though.

What makes it more obvious that the bones are facing the wrong directions is that the mesh distorts really badly while playing the animation. https://imgur.com/alOrEgW

Here's a close-up screenshot of what the model looks like using the bones extracted: image

KillzXGaming commented 4 years ago

Could you give sample files of one that breaks and works?

kriNon commented 4 years ago

Hey, there's a good chance this is an issue with importing into blender. I just heard from a friend that it's working correctly in 3dsmax.

I'll attach the files anyways:

SwitchToolboxIssue175.zip

kriNon commented 4 years ago

I'm gonna test it out when I can finish installing 3dsmax, so there's a good chance this issue can be closed, I'll report back.

KillzXGaming commented 4 years ago

It's fine. I know max works, but I want both to work like that other dae.

KillzXGaming commented 4 years ago

I've tried the same player animation skeleton in 3DS max and i get similar results. The skeleton looks like that as there's no mesh controller due to no models being present and rigged. You can export link's bfres and it should work fine given you have these settings. Capture

rt974 commented 4 years ago

Getting same bad results. What softwares versions are you using, i tried blender/3dsmax/noesis, dae smd workflow, none work. Also there are many versions of the importers/exporters, and also the 3DSMAX itself, everything is fucked up.

kriNon commented 4 years ago

@rt974 I got it working in the end. I exported animations as smd files. I imported into 3dsmax using this plugin: https://github.com/NeilJed/3DSMax-SMD-Importer-Plugin I had issues with other plugins.