setTextColor() issue

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Levish2002
Posts: 1
Joined: Sat Nov 17, 2007 3:30 pm

setTextColor() issue

Post by Levish2002 »

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.. ?

:?
goret
Posts: 2
Joined: Sun Feb 18, 2007 6:46 pm

Post by goret »

Hi !

I've got the same problem.... :/

Nobody can help us ???
greenya
Posts: 1012
Joined: Sun Jan 21, 2007 1:46 pm
Location: Ukraine
Contact:

Post by greenya »

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:

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));
...
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.
Post Reply