Page 1 of 1
[fixed]bug ? problem with .x animation
Posted: Fri Jul 05, 2013 2:02 pm
by JLouisB
Hi,
I have a problem to import an animated mesh in Irrlicht.
I made an animated mesh in Blender 2.64 and I exported it in a .x file.
Usually it works well, but when I try to load this model in the Irrlicht Mesh Viewer, the animation meet some problems of "trembling" as you can see :
In Blender :
https://dl.dropboxusercontent.com/u/244 ... -59-84.avi
In Irrlicht :
https://dl.dropboxusercontent.com/u/244 ... -24-49.avi
The .x file :
https://dl.dropboxusercontent.com/u/24460773/mod.x
I don't know if the problem come from the Blender export or of the Irrlicht import (I haven't find an other .x viewer to check my file).
Have you an idea of this problem?
Re: bug ? problem with .x animation
Posted: Mon Jul 08, 2013 3:05 pm
by CuteAlien
Sorry, I don't seem to have the correct codecs installed on my system to play your videos. But moving this to bug-reports so it's not getting lost.
Re: bug ? problem with .x animation
Posted: Mon Jul 08, 2013 11:23 pm
by JLouisB
Re: bug ? problem with .x animation
Posted: Tue Jul 09, 2013 8:10 am
by CuteAlien
Thanks, seeing it now. Would it be possible for you to also give us the .blend file so we can experiment?
Re: bug ? problem with .x animation
Posted: Tue Jul 09, 2013 11:54 am
by JLouisB
Re: bug ? problem with .x animation
Posted: Wed Jul 10, 2013 1:43 pm
by CuteAlien
Blender doesn't seem to have .x exporter by default, which one did you use? But it looks to me like an export problem - the DXViewer from Microsoft (from the Directx 9 sdk) shows the animation even more messed up.
Re: bug ? problem with .x animation
Posted: Wed Jul 10, 2013 2:18 pm
by JLouisB
There is an .x exporter by default, but you should enable it in File/User Preferences/Addons/Import-Export/DirectX Model Viewer.
I will try DXViewer.
Re: bug ? problem with .x animation
Posted: Wed Jul 10, 2013 2:52 pm
by CuteAlien
Yeah, I just found it. There's an update in the blender wiki as it says the 2.67 exporter had bugs, but that also doesn't give me better results so far (same bug in Irrlicht, in DXViewer no animation at all).
Re: bug ? problem with .x animation
Posted: Wed Jul 10, 2013 3:03 pm
by CuteAlien
Hm, I've got now an export that works in dxviewer (updated exporter and not using "Export Actions as AnimationSets). Still same bug in Irrlicht - so now looks like an import bug in Irrlicht.
Re: bug ? problem with .x animation
Posted: Wed Jul 10, 2013 11:49 pm
by JLouisB
Yes, I have try to load the model in dxviewer and it works well.
I think that is a bug of Irrlicht.
Re: bug ? problem with .x animation
Posted: Tue May 05, 2015 5:14 pm
by CuteAlien
Well, I guess you wrote your own loader by now with the assimp integration. But I found this one - the rotation quaterions had not been normalized after loading which caused the frame-interpolations to fail.
It's fixed in svn trunk (r5102) an svn release branch 1.8 (r5101). Also changed it for the b3d loader (just in case).
Thanks for the report and test-model.
Re: [fixed]bug ? problem with .x animation
Posted: Wed May 06, 2015 10:25 pm
by JLouisB
I have tested this model in the Assimp viewer... and there is the same bug.
I have added the normalisation in my wrapper, now it's works (I will report this to Assimp)
Thanks !
Re: [fixed]bug ? problem with .x animation
Posted: Thu May 07, 2015 9:01 am
by CuteAlien
Good, so it was still useful :-)