We recently switched from irrlicht 1.7.2 to the nightly build of v1.8 for our project TANK@WAR.
One of the few problems we are having since the new version is the position / transformation of the Player name tags.
These are IBillboardTextSceneNodes with a players tank node as parent (and with position.Y = 5 (m)), so that they follow the player's tank correctly as they move about.
Code: Select all
scene::IBillboardTextSceneNode* playerNameNode = smgr->addBillboardTextSceneNode(
font, // font
playerName.c_str(), // text
player->getTank()->getNode(), // parent
dimension, // dimension
core::vector3df(0, 5, 0), // position
-1, // id
color, // color
color); // color
Here I create a simple cube scene node with a FlyCircleAnimator and add a IBillboardTextSceneNode as a child.
When compiled and run with 1.7.2 the pos is fine, in v1.8 however the pos stays at (0, 0, 0).
Any ideas?