I'm writing this Code:
vector3df pos(-40,-32,50);
mScoreTextNode = mGameEngine->GetSceneManager()->addBillboardTextSceneNode (font,L"Score:",0,dimension2df(15,10),pos,-1,-1,-1);
mScoreTextNode->setMaterialFlag(video::EMF_LIGHTING, false);
mScoreTextNode->setTextColor(video::SColor(0,0,0,10))
but no metter what color i'm writing in 'SetTextColor' (including changing alpha value) I'm getting the same somewhat white color for the text...
any thoughts.. ?
setTextColor() issue
I do not know about setTextColor() -- very possible this is a bug, because I have never get any changes while modifying it.
But, i have played a bit and got total black text with next code:
So we simply using shade_top and shade_down parameters to set the color.
P.S.: it is also possible to get top-bottom gradient.
Hint: Just played with different renderers, and found that this is not working with EDT_SOFTWARE.
But, i have played a bit and got total black text with next code:
Code: Select all
...
addBillboardTextSceneNode(
font, L"Score:", 0, dimension2df(15,10), vector3df(0,0,50),-1,video::SColor(0,0,0,0),video::SColor(0,0,0,0));
...
P.S.: it is also possible to get top-bottom gradient.
Hint: Just played with different renderers, and found that this is not working with EDT_SOFTWARE.