Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Animation not working #1

Open
ReindeerFloatilla opened this issue May 20, 2018 · 18 comments
Open

Animation not working #1

ReindeerFloatilla opened this issue May 20, 2018 · 18 comments

Comments

@ReindeerFloatilla
Copy link

ReindeerFloatilla commented May 20, 2018

We're looking to get animation support working with this plugin. So far it loads models from the game No One Lives Forever however it does not import/export animations very well. We are suspecting it doesn't have anything to do with the model format itself but rather our implementation in Blender.

We just need to figure out the matrix transformation steps and coordinate system translation. I can supply a model for testing purposes if necessary.

@technobaboo
Copy link

I'd love to work on this! I just need the model to test with it and I'll pull request if I can fix it!

@ReindeerFloatilla
Copy link
Author

ReindeerFloatilla commented May 21, 2018

We've been using these models a lot for testing the plugin
abc.zip

@ReindeerFloatilla
Copy link
Author

We also have this model which is a cube, which we've used for testing purposes
abc2.zip

@cmbasnett
Copy link
Owner

Hi @jsking! Glad to hear you're going to take a crack at this. I've documented the model format here. Feel free to ask either of us if you run into a problem.

@technobaboo
Copy link

So I've taken a look at the animations and I'm guessing every single bone is disconnected from each other in the original game engine, as well as having a global rotation. Do you have any specifics on how Lithtech used those quaternions for bone rotations?

@cmbasnett
Copy link
Owner

Nothing in particular other than the somewhat out-of-sync documentation I was working off of, which is actually for an older version of the ABC format. (https://web.archive.org/web/20080605043638/http://bop-mod.com:80/download/docs/ABC-Format-v6.html).

I had a suspicion that the way I was constructing the bones (connected rather than disconnected) might have been the reason that the animations seemed to be completely bonkers when I applied the bone rotations. It might be instructive to be able to view the models inside of the ModelEdit program, since that cleared up a lot of questions I had. @ReindeerFloatilla will post the SDK files for you to have a look.

@ReindeerFloatilla
Copy link
Author

sdk.zip

@ReindeerFloatilla
Copy link
Author

we also ran modeledit through a debugger which helped us a lot with figuring out how it all worked

@technobaboo
Copy link

I've been working on this for several days and I still can't find how to debug windows programs. I'm using Linux, so I have to use WINE to run ModelEdit.

@cmbasnett
Copy link
Owner

cmbasnett commented May 24, 2018 via email

@technobaboo
Copy link

Ah okay then. How do you open the raw file? I tried text editors and they didn't like the file. Is it a special encoding?

@cmbasnett
Copy link
Owner

cmbasnett commented May 24, 2018 via email

@cmbasnett
Copy link
Owner

Also as a I mentioned before, the format of the file is described here.

@SmiteIsTrashBro
Copy link

SmiteIsTrashBro commented Jan 9, 2019

I'm working in something similar but for the noesis instead, to export Aliens vs. Predator 2 models. Your informations was actually useful, thank you. For now I've nothing more than model meshes and its bones, I'm stuck in figure out how export the animations as you, so to say. If I do it, I'll share the solution with you, but until then... do you have any news?

Besides, this .lta (converted .abc model) may help you, since it can be open in simple text editor.
https://mega.nz/#!iYtRlQYR!00DhYMZ0QValf95v1MTMI3bsmEwlQ7xB4gbXspJSVOs

@ReindeerFloatilla
Copy link
Author

Unfortunately no there isn't any updates. Making any sort of .abc plugin regardless of Blender or Noesis would be extremely great.

AVP2 used the same version of .abc as No One Lives Forever. And we discovered that the format was just added onto the Lithtech 1.0 version of the format. So it would theoretically be possible to also get it to work with Blood 2 and Shogo.

We mostly talk on Discord. If you wanna chat there it'd be great.

@SmiteIsTrashBro
Copy link

Yes, would be. My main purpose it's AVP but I'm almost sure there are people interested in the other games you cited.

Yes please, can you inform invite link? Or add me there, CrazY.#5317

@haekb
Copy link
Contributor

haekb commented Dec 30, 2019

WIP PR is here #2

If anyone has any ideas on the bone twisting rotations, I'd be happy to hear!

@haekb
Copy link
Contributor

haekb commented Jan 6, 2020

Oh just realized my WIP PR was merged.

Just a heads up, while it does import animations (not well), I haven't tested exporting on blender 2.80 🤔

I've played around with different ways of applying the animations and I haven't had any luck on that front.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants