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.
iona
Posts: 19 Joined: Mon May 29, 2006 6:29 pm
Post
by iona » Sat Jul 08, 2006 1:04 pm
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 » Sat Jul 08, 2006 4:04 pm
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 » Sat Jul 08, 2006 8:16 pm
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 » Sun Jul 09, 2006 11:02 am
UP
iona
Posts: 19 Joined: Mon May 29, 2006 6:29 pm
Post
by iona » Sun Jul 09, 2006 11:02 am
UP
iona
Posts: 19 Joined: Mon May 29, 2006 6:29 pm
Post
by iona » Sun Jul 09, 2006 11:02 am
UP
iona
Posts: 19 Joined: Mon May 29, 2006 6:29 pm
Post
by iona » Sun Jul 09, 2006 11:03 am
Anyone ? Plz !