blender_niftools_addon icon indicating copy to clipboard operation
blender_niftools_addon copied to clipboard

KFA import/export

Open DigitalBox98 opened this issue 2 years ago • 9 comments

Is your feature request related to a problem? Please describe. KFA anim format is not supported whereas it's a NIF-like format (DAOC)

Describe the solution you'd like Propose the import/export for .kfa files

Describe alternatives you've considered None

Additional context I've been able to create a quick & dirty import for KFA (DAOC) to animate the corresponding NIF, however I'm wondering if the menu should be included as an additional item or in the .kf menu (.kf and .kfa are both for animations)

menu

Below is what is working today (import only) :

kfa

DigitalBox98 avatar Jan 24 '23 21:01 DigitalBox98

Is kfa just another name for .kf? Or does it need updates on other places too, besides the UI?

Candoran2 avatar Jan 24 '23 22:01 Candoran2

From my understanding it’s an older or specific kf-like format meaning kf is not compatible with kfa and vice-versa in terms on how the data are stored to specify the animation of a NIF model.

DigitalBox98 avatar Jan 24 '23 23:01 DigitalBox98

I see. In that case, if changes need to be made to the actual import/export code you can make the changes yourself and open a PR, or at the very least post some kfa files. Either way it helps to have kfa files available for testing and verification, but if you make the code changes yourself it's obviously much quicker (especially if you've already got it working).

Candoran2 avatar Jan 25 '23 08:01 Candoran2

Yes my idea is to propose a PR but I was wondering if I need to separate KFA versus KF menu (DAOC is using kfa for animation not kf files)

DigitalBox98 avatar Jan 25 '23 08:01 DigitalBox98

I guess that really depends on how similar they are, but to judge that I'd need to see one.

Candoran2 avatar Jan 25 '23 09:01 Candoran2

Ok understood. I will propose a first PR version with a KFA/NIF in that case :)

DigitalBox98 avatar Jan 25 '23 09:01 DigitalBox98

Import done with PR #558

I can provide a few NIF and their corresponding KFA for checkings but not sure how to share them via GitHub :)

DigitalBox98 avatar Jan 26 '23 21:01 DigitalBox98

GitHub usually lets you attach a zip file via simple drag and drop.

Candoran2 avatar Jan 26 '23 22:01 Candoran2

For testing purpose only :

  • dr_rat_run.kfa : first kind of kfa (ExtraData array)
  • hulk_run.kfa : second kind of kfa (ExtraData chained list)

nif_kfa.zip

DigitalBox98 avatar Jan 26 '23 22:01 DigitalBox98