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.
There's definitely some funky stuff going on in there but I'm hesitant to post a bug report. For instance, I in particular have to do myAMesh->getMesh(0) on a certain .x file I have for it to be in the right orientation. Just don't have the energy to write up a bug report right now though and I don't even know if it's Irrlicht or Blender for that matter. I was told long ago to use AnimatedMeshes for everything in any case.
it dosen't work for my .x model.
With "20kdm2.bsp" it still works...
Since addOctTreeSceneNode(IAnimatedMesh* mesh, ...) just calls addOctTreeSceneNode(IMesh* mesh, ...) using mesh->getMesh(0), I find that a little hard to understand.
Stefan wrote:btw, the mesh returned by mesh->getMesh(0) seems to be wrong with some meshes.
I'm guessing this is the known bug with SkinnedMesh, please post your mesh to be sure. There needs to be two ways of loading a B3d/X/MS3D mesh that doesn't contain animation data.
Either-
a) You want to treat it like an animated mesh and move its bones around (ie ragdoll)
b) You want it completely static and to ignore all bones (ie level)