GUI translucency problem

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
expaler
Posts: 2
Joined: Wed Nov 30, 2005 3:56 am

GUI translucency problem

Post by expaler »

I've just made my first release on http://msmazes.sourceforge.net/. The prebuilt binary, compiled using Dev-C++ for Windows, makes moderate use of Irrlicht's GUI.

The problem is that any IGUIWindow that is added directly to the environment can be partially seen through. (You can still see the arrows and or circles under it.) Choosing between the software renderer and OpenGL doesn't seem to make a difference in this case. Adjusting the skin color and the background transparency setting likewise has no effect.

Has anybody encountered this problem before me?

I can make a simpler test case later if necessary.

Cromwell D. Enage
Vox
Posts: 47
Joined: Fri Apr 01, 2005 5:25 pm

Post by Vox »

Code: Select all

	for (u32 i=0; i<EGDC_COUNT; ++i)
	{
		SColor color = Environment->getSkin()->getColor((EGUI_DEFAULT_COLOR)i);
		color.setAlpha(255);
		Environment->getSkin()->setColor((EGUI_DEFAULT_COLOR)i,color);
	}
expaler
Posts: 2
Joined: Wed Nov 30, 2005 3:56 am

Re: GUI translucency problem

Post by expaler »

Thanks, that worked!

Now I'm just wondering why the alpha components of all GUI colors aren't 255 by default. :?:

Cromwell D. Enage
Eternl Knight
Posts: 313
Joined: Tue Nov 01, 2005 5:01 am

Post by Eternl Knight »

My guess... the default (with transparency) is "prettier" and makes quickly whipped together demos look nicer :)
Post Reply