niacdoial / blemd

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

Animations Not Importing Properly. #83

Open Mig8806 opened 6 months ago

Mig8806 commented 6 months ago

When I import .bmd files, for some reason the animations get messed up. For example when I import Epona from TP her legs kick out in weird directions, as shown in the .gif below. Not sure why this was happening and I was wondering if there is a way to fix it.

epona walk

Edit: This happens on all animations, not just this one.

spamzilla commented 6 months ago

I'm having the same issue here. Sometimes the whole front end of the horse will distort as well.

Mig8806 commented 6 months ago

I'm having the same issue here. Sometimes the whole front end of the horse will distort as well.

Glad to know I'm not the only one. Let me know if you find a way to fix it.

niacdoial commented 6 months ago

oops sorry for the delay can you let me look at the animation curves for those legs, please?

spamzilla commented 6 months ago

Sorry for sounding like a noob but what are 'animation curves' exactly?

niacdoial commented 6 months ago

oh no worries. gotta learn at some point, right? (also it wouldn't be the first time I word something weirdly and it makes it impossible to understand)

In short, it's a way to see the different motions in the animation as "amount of X as a function of time"

here are some instructions to reach it (...at least on blender 4.0, tell me if you use another version and I'll try to write new instructions). I'll assume you almost never used blender before, just to be safe.

spamzilla commented 6 months ago

I think what you're looking for might be something like this? :

Zelda TP Horse Graph

niacdoial commented 6 months ago

hm... I might have a few ideas of what's happening. tell me: does the position of the leg look good at frames 0, 7 and 14? also, as a hacky workaround, does this problem disappear when, in the select-file-to-import dialog, you enable the "disable axis conversion" option on the right side of the dialog?

spamzilla commented 6 months ago

Yes, frames 0, 7, and 14 do appear to be correct. "Disable axis conversion" seems to only rotate the horse by 90 degrees though. The mispositioning of the leg is still present.

Mig8806 commented 6 months ago

Sorry for the delay, but here is my animation graph: image

Edit: This is for the "hs_run_slow" animation. Just figured I'd note that its for a different animation than @spamzilla's graph.

niacdoial commented 6 months ago

ok, so good news: I think I know exactly why this is happening. (long story short, there are several ways to express the same rotation in an "Euler XZY" representation, and for some reason frame 7 uses a different way than frames 0 and 14) bad news: I don't know where it happens yet. also sorry Mig8806 but I can't really see anything on that graph, everything is too cramped together horizontally.

...Also, Can I also ask either of you if the problem exists on blender before 4.0? it seems weird that I get two users with the same bug on the same basic feature after so much time, and so close to each other

niacdoial commented 6 months ago

actually, do tell me if the newest commit fixes it (there's a new option on the right side of the choose-file-to-import dialog) that should be enabled for this

spamzilla commented 6 months ago

I know this is github but I actually have no clue how git works.

niacdoial commented 6 months ago

no problem lol. I'll just... have to guess what part you didn't understand and give an explanation

If it's a matter of not understanding what I meant:
commits are just... snapshots of the code that has been written. in other words, each of them stores "what the code of this program looked like at that point in time".
so what I mean by "the newest commit might fix this bug" is "On my own computer, I made some changes to the code which might fix this bug, then took a snapshot of the code, and uploaded that snapshot to github for anyone to download"

in other words, "try downloading BleMD again, the newest version has changes that might fix this."

...hope that helps, if this was your question

spamzilla commented 6 months ago

The new option makes things much worse. Everything is rotating like crazy!

niacdoial commented 5 months ago

...I see. What about now? actually scratch that it's worse on my end as well

niacdoial commented 5 months ago

what about now?

spamzilla commented 5 months ago

The horse's legs are still flailing around and it also appears to be walking in reverse.

BeezBumba commented 3 months ago

@Mig8806 Can I ask how you imported the BMD files with animations? I'm trying to do the same thing but like link instead?

niacdoial commented 3 months ago

@BeezBumba the animation files need to be placed in a specific way with respect to the bmd file (see: https://github.com/niacdoial/blemd?tab=readme-ov-file#how-are-the-the-animations-handled, or more accurately https://github.com/niacdoial/blemd/blob/648205a3c173d5f4c6806d5eba30f20024ba5386/README.md?plain=1#L80 since the markdown rendering is borked right now)

BeezBumba commented 3 months ago

When I extract the AlAnm.arc file(has link's animations) it gives me 2 folders that have bmds bmde and bmdr I'm also not sure which bmd is in charge for all of the bcks. Screenshot 2024-05-23 161556