[fixed]bug ? problem with .x animation

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
JLouisB
Posts: 67
Joined: Tue Jul 24, 2012 12:36 pm
Location: France

[fixed]bug ? problem with .x animation

Post 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?
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: bug ? problem with .x animation

Post 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.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
JLouisB
Posts: 67
Joined: Tue Jul 24, 2012 12:36 pm
Location: France

Re: bug ? problem with .x animation

Post by JLouisB »

CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: bug ? problem with .x animation

Post by CuteAlien »

Thanks, seeing it now. Would it be possible for you to also give us the .blend file so we can experiment?
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
JLouisB
Posts: 67
Joined: Tue Jul 24, 2012 12:36 pm
Location: France

Re: bug ? problem with .x animation

Post by JLouisB »

CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: bug ? problem with .x animation

Post 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.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
JLouisB
Posts: 67
Joined: Tue Jul 24, 2012 12:36 pm
Location: France

Re: bug ? problem with .x animation

Post 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.
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: bug ? problem with .x animation

Post 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).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: bug ? problem with .x animation

Post 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.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
JLouisB
Posts: 67
Joined: Tue Jul 24, 2012 12:36 pm
Location: France

Re: bug ? problem with .x animation

Post by JLouisB »

Yes, I have try to load the model in dxviewer and it works well.
I think that is a bug of Irrlicht.
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: bug ? problem with .x animation

Post 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.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
JLouisB
Posts: 67
Joined: Tue Jul 24, 2012 12:36 pm
Location: France

Re: [fixed]bug ? problem with .x animation

Post 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 !
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: [fixed]bug ? problem with .x animation

Post by CuteAlien »

Good, so it was still useful :-)
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply