Panels alpha-value < 50 makes panel invisible

Posted By: deleRium

Panels alpha-value < 50 makes panel invisible - 09/22/07 11:22

Hey-ho ...

And another small problem

I got a panel with an background image for a custom console. This background image is in pcx-format. I have to set the OVERLAY flag on. When the alpha value becomes lower than 50 (TRANSCULENT-flag is set) the panel becomes invisible.

The same problem with my crosshair panel.

Code:
PANEL* pConsole = {
bmap = bConsole;
layer = 1;
flags = TRANSLUCENT;
alpha = 30;
}

...

pConsole.pos_x = 1;
pConsole.pos_y = 1;
set(pConsole,OVERLAY); // The evil line
set(pConsole,VISIBLE);



What's the problem??

Thanks in advance
Posted By: oldschoolj

Re: Panels alpha-value < 50 makes panel invisible - 09/22/07 12:15

hmm, i wish i could help, but maybe it has to do with the image format. Try using a tga with an alpha channel. I've never had problems with alpha values with a tga.
Posted By: Scorpion

Re: Panels alpha-value < 50 makes panel invisible - 09/22/07 15:09

i have got the same problem with model-transparency...
Version: 7.05
Posted By: HeelX

Re: Panels alpha-value < 50 makes panel invisible - 09/22/07 16:01

would you please make a small executable demo that shows the wrong behaviour?
Posted By: deleRium

Re: Panels alpha-value < 50 makes panel invisible - 09/22/07 21:52

@HeelX:

I uploaded a executable:

http://rapidshare.com/files/57552769/panel_bug.rar

Start it and type

Code:
pCrosshair.alpha = x;



Replace x with 1..49 for invisible or 50..100 for increasing visibility.

You can find the panel definition in the "bullet_physics.c"-script.

Lite-C Free-Edition V1.05.5

@oldschoolj:
Hmmm, all values above 50 are working perfect. The visibility is normaly in- and decreasing but a value under 50 makes the specific image invisible.

I don't want to use TGA for every simple GUI image. TGA is too big in my opinion.
Posted By: deleRium

Re: Panels alpha-value < 50 makes panel invisible - 09/27/07 11:55

Posted in Bug-Forum

http://www.coniserver.net/ubbthreads/fav...amp;postmarker=
© 2023 lite-C Forums