Skip to main content
GameDev.net gamedev.net
🔒 Locked

strange problem with Irrlicht and attaching objects to bone nodes.

Started by rh73 Jul 7, 2012 at 6:39 PM 1 replies 2.3k views
Original Post
rh73
rh73
I stumbled upon a weird problem using Irrlicht with .X models exported with Blender. The models are animated with armatures/bones. Loading and displaying them works fine. But when I tried attaching child objects to the bones (for example a weapon to the left hand etc) the translations and rotations came out wrong (mirrored along some but not all axises).

After some experiments I found out that when I export the models for a right-handed coordinate system it suddenly works and the child objects are translated and rotated correctly. But since Irrlicht uses a left-handed system now the models and bones are mirrored (left side of the original model is now it's right side). Which is not nice.

Currently I'm trying to figure out if this is a problem with Blender's DirectX exporter or with Irrlicht and what to do about it. I already asked in the Irrlicht forum, but I thought I might as well give it a try here because I assume other devs might have had the same problem. I didn't try it out yet, but I've had the idea to manually regenerate the meshes as left-handed inside Irrlicht and just rename the bones (switch L with R); mirroring the animated armatures inside Blender is not such a big deal. But all this would be just a workaround and I'm looking for a proper solution and also want to find out what's happening.
rh73
rh73
Will this topic be better off if moved to another section? Like Graphics Programming, maybe?
DevLiquidKnight
DevLiquidKnight
My best suggestion would be since Irrlicht is open source perhaps you could open up the source code and figure out whats going on, or even flip it using code that way. I think the problem is not too many people are familiar with irrlicht, I used to use it but that was a long time ago. smile.png

I also don't think I ever tried attaching objects to the bones.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.