Transparent text in OpenGL

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
iona
Posts: 19
Joined: Mon May 29, 2006 6:29 pm

Transparent text in OpenGL

Post by iona »

Hello,

I'm trying to display a transparent text on my scene using OpenGL renderer.
However this piece of code:

Code: Select all

	fontStd->draw(L"Test text!",
	core::rect<s32>(100,100,300,290),
	video::SColor(alpha,0,0,0));
Doesn't let me control the opacity of the text.

I found a bug report with a patch on this forum (http://irrlicht.sourceforge.net/phpBB2/ ... ransparent), but it doesn't work.

I use irrlicht-1.0.

Thanks in advance,
iona
AndyCR
Posts: 110
Joined: Tue Nov 08, 2005 2:51 pm
Location: Colorado, USA
Contact:

Post by AndyCR »

Is that being called every frame? If not, you are really passing a copy of the alpha value, so when alpha changes, the copy the font has does not. If so, then I'm out of ideas, sorry.
iona
Posts: 19
Joined: Mon May 29, 2006 6:29 pm

Post by iona »

AndyCR wrote:Is that being called every frame? If not, you are really passing a copy of the alpha value, so when alpha changes, the copy the font has does not. If so, then I'm out of ideas, sorry.
Yes, that code comes from main render loop :(

but thanks for trying to help, :)
iona
iona
Posts: 19
Joined: Mon May 29, 2006 6:29 pm

Post by iona »

UP :(
iona
Posts: 19
Joined: Mon May 29, 2006 6:29 pm

Post by iona »

UP :(
iona
Posts: 19
Joined: Mon May 29, 2006 6:29 pm

Post by iona »

UP :( :(
iona
Posts: 19
Joined: Mon May 29, 2006 6:29 pm

Post by iona »

Anyone ? Plz !
Post Reply