Page 1 of 4
NIF to FBX?
Posted: Mon Mar 06, 2023 4:42 pm
by xandro
Is there any way to convert nif to fbx with animations,mesh and skeleton?
I tried NifSkope but it only can be exported as .obj.
also I tried using blender plugin and it doesn't work, even noesis didn't work.
The game is Divinity 2 DKS.
Here is the file if someone want to look in it.
https://www.sendspace.com/file/4ic8su
Re: NIF to FBX?
Posted: Mon Mar 06, 2023 6:08 pm
by shakotay2
Nif 20.3.0.9, nearest hit is:
Or try this:
.
nifObject.png
Re: NIF to FBX?
Posted: Mon Mar 06, 2023 6:23 pm
by xandro
You are the one who managed to mod Divinity 2 DKS believe it or not we are still trying we even created a new tools for unpacking/repacking game files.
But that only exports .obj? I need .fbx
I even opened this file in NifSkope and it's working my question is how to get .fbx from that file?
Re: NIF to FBX?
Posted: Mon Mar 06, 2023 6:56 pm
by shakotay2
xandro wrote: ↑Mon Mar 06, 2023 6:23 pm
You are the one who managed to mod Divinity 2 DKS believe it or not we are still trying we even created a new tools for unpacking/repacking game files.
Haha, good things never die, do they?
But that only exports .obj? I need .fbx
Yeah; you could import .obj to Noesis then export to .fbx.
But it's probably the weights and skeleton you need, do you?
I even opened this file in NifSkope and it's working my question is how to get .fbx from that file?
Afair NifSkope exports to .obj only, does it?
Well, best choice would be Noesis then. But it's Nif importer doesn't deal with 20.3.0.9, just 20.3.0.4.
Re: NIF to FBX?
Posted: Mon Mar 06, 2023 7:00 pm
by xandro
Great game... Thank you for those guides 10+ years ago.
That's right I have single nif with animations,mesh and skeleton.
I want to get single .FBX and open it in blender I tried many many things nothing seemed to work.
I tried next :
Noesis
NifSkope only able to export as .obj
Blender Plugin
3ds max plugin
If you have any advice or idea please feel free to share it.

Re: NIF to FBX?
Posted: Mon Mar 06, 2023 8:15 pm
by shakotay2
You could try to get the skeleton from the nif file using Durik's SkelFinder:
Some basic knowledge required about bones and matrixes, though. Usually you'll need three addresses: start of bone names table, start of hierarchy table and start of matrices.
So many bones in the boar nif at 0x1311...(maybe for different LODs?) But with some luck the bone names' table starts at 0x1B09 (05 000000= 5, length DWord of "Bip01")
Re: NIF to FBX?
Posted: Mon Mar 06, 2023 11:48 pm
by xandro
I found a way with blender plugin I got some version which works kinda.
So the problem is next
I can import whole nif with mesh,animation and skeleton animation works but not all of them sometimes models are buggy do you maybe know the reason?
Re: NIF to FBX?
Posted: Tue Mar 07, 2023 12:52 am
by shakotay2
xandro wrote: ↑Mon Mar 06, 2023 11:48 pm
I found a way with blender plugin I got some version which works kinda.
So the problem is next
I can import whole nif with mesh,animation and skeleton animation works but not all of them sometimes models are buggy do you maybe know the reason?
No, I didn't use Blender Nif importers for years. But if you have a working model you simply could
add debug print lines into said py script, then compare the logged lines from both, a working model and a buggy one.
Thus you'll see at least where the problems is (you need to have some python skills and format understanding to solve it then, though).
Did you check the console output? Usually gives a first hint.
Re: NIF to FBX?
Posted: Thu Mar 30, 2023 11:52 am
by xandro
Let me explain it like this, I need to export that NIF file to FBX with animation,mesh and armature.
I did some research and someone did it in 2010/2011 even imported it in Unity I found out that guy used some blender plugin and pyffi I guess.Unfortunatly he don't know which version he used and he told me he had a lot of problem but made it work.
And I'm not very familiar with python to do that by myself.
Re: NIF to FBX?
Posted: Thu Mar 30, 2023 12:08 pm
by shakotay2
xandro wrote: ↑Thu Mar 30, 2023 11:52 amAnd I'm not very familiar with python to do that by myself.
I'm sorry to say but I don't think that anyone else will do it for you (10 years later).
It's not a matter of scripting or coding - it's just
a matter of creating a workflow.
(If you can't do that you might rethink your ambitions.)
My best suggestion would be to
start with the meshes:
read the NifTools section in the above linked post.
If you can re-create any workflow we might talk about the skeleton.
(I have no idea whether that unity guy you mentioned got working animations. This would be a long way to go.)
Re: NIF to FBX?
Posted: Thu Mar 30, 2023 12:50 pm
by xandro
He did there is even a youtube video, we talked and he told me that he had a lot of problems.
So I'm c# developer I created a couple of tools in the past but for this one I have no idea from where to start.
I tried many blender plugin and only one seemed to work but not propertly, animations are messy.
Re: NIF to FBX?
Posted: Thu Mar 30, 2023 1:17 pm
by shakotay2
xandro wrote: ↑Thu Mar 30, 2023 12:50 pmI tried many blender plugin and only one seemed to work but not propertly, animations are messy.
Why not upload a sample in question and tell us your workflow?
(Plus, if you have at least one working animation you should show it, too, of course.)
Re: NIF to FBX?
Posted: Thu Mar 30, 2023 1:31 pm
by xandro
Here is a nif object :
https://www.sendspace.com/file/4wy8av
Blender plugin I use :
https://www.sendspace.com/file/gl3xmh
How it looks once I import it in blender :
https://prnt.sc/Osu8jXM7VG_-
When I play the animation I clearly can see mesh moves but not propertly.
Re: NIF to FBX?
Posted: Thu Mar 30, 2023 2:09 pm
by shakotay2
Thank you!
Well, from here
https://github.com/niftools/blender_nif ... don/issues I can see you gave a feedback. Brave!
The project's last update is from a year ago - so it's assumed to be "fresh".

It provides general nif support, afaics.
(Maybe they're not focused on Divinity II nifs, surprise.)
I'll try this out. But don't expect too much.
Re: NIF to FBX?
Posted: Thu Mar 30, 2023 2:19 pm
by xandro
Like I said I asked anyone and everywhere I did everything I could.
I just don't understand how someone in 2010/2011 manage to export it in .FBX I think they used PyFFI in that time.
I even tried to install windows 7 on virtualbox and tried to install old blender 2.49b and old pyffi but no luck.
And yes they are not focusing on Divinity 2 no one does.