Problem with BoneSceneNode + Fix

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
Schutzengelbert
Posts: 3
Joined: Fri Dec 20, 2013 11:47 am

Problem with BoneSceneNode + Fix

Post by Schutzengelbert »

Hi,

i encountered a rendering problem with BoneSceneNodes.
I add a child (an animated meshscenenode (e.g. a weapon)) to the fpscamera
and add another scenenode (the ammunition) to a joint of this weapon.

camera->addChild(crossbow);
IBoneSceneNode * bone = crossbow->getJointNode("arrow");
bone->addChild(arrow);

Without camera movements, everything is all right and looks like:
Image

But as soon as the camera is rotated (via mousecontrol), the rendering of the child-arrow is delayed.
Image

In the enginecode (1.8 + 1.9 + latestSVN) i found the line
CBoneSceneNode.cpp:OnAnimate():77
//updateAbsolutePosition();

I don't know, why this is commented out (maybe some performance improvement?),
but if i reactivate this line, everything works fine.

Best regards
Post Reply