when i have this, everything works, but the text appears in the middle of the mesh.
Code: Select all
ISceneNode nameNode = smgr.addTextSceneNode(font, name, new SColor(225, 0,225, 0));
node.addChild(nameNode);
Code: Select all
ISceneNode nameNode = smgr.addTextSceneNode(font, name, new SColor(225, 0,225, 0));
nameNode.setPosition(nameNode.getPosition().addOperator(new vector3df(0,45,0)));
node.addChild(nameNode);
Code: Select all
ISceneNode nameNode = smgr.addTextSceneNode(font, name, new SColor(225, 0,225, 0));
nameNode.setPosition(fpscam.getPosition().addOperator(new vector3df(0,45,0)));
fpscam.addChild(nameNode);
now, what the HELL is happening???
is this an irrlicht glitch or something?
please help.