niacdoial / blemd

BMD importer for blender (BDL format also partially supported)
GNU General Public License v3.0
32 stars 13 forks source link

Zelda Twilight Princess Animation Import Failure #8

Closed GANONdork123 closed 6 years ago

GANONdork123 commented 7 years ago

The animations for models in the Legend of Zelda: Twilight Princess do not appear to import correctly, and some models (such as Link's) will cause Blender to crash while attempting to open if the animation files are present. image

Otherwise, Twilight Princess models import just fine.

niacdoial commented 7 years ago

hello, and sorry for answering so late, I was without my computer for a while. Can I ask you to give me some of the files that caused this problem (and possibly the settings used), please? it will be far easier to correct it like with them. (also please note than the animation files in a "bck" folder may correspond to any model from the neighboring "bmdr"/"bmdv" folder, it may be the cause of the problem)

GANONdork123 commented 7 years ago

Sure here you go. Maro (model in the screenshot), Kmdl (Link) Both animate properly in BMDView2

niacdoial commented 7 years ago

Thanks. I started working on it. I will tell you when it is fixed.

Le 22 août 2017 17:38, "GANONdork123" notifications@github.com a écrit :

Sure here you go. Maro (model in the screenshot) https://drive.google.com/open?id=0B56Qal6OWVkoSlEwQm1tNlFLcU0, Kmdl (Link) https://drive.google.com/open?id=0B56Qal6OWVkodkFFcTk0VEJKcmc

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/niacdoial/blemd/issues/8#issuecomment-324065944, or mute the thread https://github.com/notifications/unsubscribe-auth/AQR7vRcV9eQvtIvsFUcqY5aI8Oo7PP5Lks5savYHgaJpZM4O1kup .

niacdoial commented 7 years ago

fixed what seems to be half of the issue results looks like a badly broken human instead of an amorphous blob other half continues to be out of sight. trying to isolate parts of the code

niacdoial commented 7 years ago

Commited what worked on my side. Does it work on yours?

GANONdork123 commented 7 years ago

Maro.bmd imports perfectly with animations, however al.bmd (the main model within Kmdl.arc) still fails to import when trying to import with animations.

niacdoial commented 7 years ago

I'll work on it, but I have to tell you that I can't give it nearly as much time as before.

GANONdork123 commented 7 years ago

I've found another oddity. It seems Twilight Princess has different kinds of BMD models. BleMD can import BMDs if the folder they are in when dumped is called "bmde" or "bmwr" but sometimes Blender crashes when trying to import BMDs from a "bmdr" folder, so there must be something different between the BMDs inside those folders. here's an archive of each of the different types: Here's an archive of each of the different types: https://drive.google.com/open?id=0B56Qal6OWVkobkhEeWh1OUFDNTg. The "bmdr" one refuses to import.

niacdoial commented 7 years ago

Fixed the previously mentioned crash. it also seems that it is more stable if animations are imported in small groups. to exclude animations, you can move the corresponding .bck files, or change their extension. I also just read your new message.

GANONdork123 commented 6 years ago

OK it seems all BMDs import, however the ones used for Maps take an exceptionally long time, and vertex colors and normals are lost. Blender also gives this error.

image

niacdoial commented 6 years ago

Could I have the files that caused this crash (and some with data loss), please? I'll try to work on it. thanks

2017-12-10 2:25 GMT+01:00 GANONdork123 notifications@github.com:

OK it seems all BMDs import, however the ones used for Maps take an exceptionally long time, and vertex colors and normals are lost. Blender also gives an error similar to this.

[image: image] https://user-images.githubusercontent.com/20745330/33801131-f99cb128-dd1e-11e7-8343-8bd3ecadef7d.png

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/niacdoial/blemd/issues/8#issuecomment-350518221, or mute the thread https://github.com/notifications/unsubscribe-auth/AQR7vSDRsrS02kcMs6tBecELI8JS87XLks5s-zMcgaJpZM4O1kup .

GANONdork123 commented 6 years ago

R00_00.arc 0.rarc_dir.zip All of the ones used for level/map geometry seem to have the same issue. This is the specific one used to generate that error message.

niacdoial commented 6 years ago

There. It works on my side. Will close issue if it works on yours

GANONdork123 commented 6 years ago

Seems to work perfectly now! If anything else comes up I'll open another issue, but until then it seems to work perfectly.

niacdoial commented 6 years ago

Ok! PS: The image loader broke, but it only made the thing crash when importing a model for the first time. Fixed it now.