Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,280 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Panels alpha-value < 50 makes panel invisible #156246
09/22/07 11:22
09/22/07 11:22
Joined: Sep 2007
Posts: 42
Germany - Braunschweig
deleRium Offline OP
Newbie
deleRium  Offline OP
Newbie

Joined: Sep 2007
Posts: 42
Germany - Braunschweig
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

Re: Panels alpha-value < 50 makes panel invisible [Re: deleRium] #156247
09/22/07 12:15
09/22/07 12:15
Joined: Aug 2005
Posts: 390
Florida
O
oldschoolj Offline
Senior Member
oldschoolj  Offline
Senior Member
O

Joined: Aug 2005
Posts: 390
Florida
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.


you can find me with my face in the keyboard, unshaven, listening to some nameless techno tragedy, and hashing through code over a cold cup a stale joe. __________________________________ yours truly
Re: Panels alpha-value < 50 makes panel invisible [Re: oldschoolj] #156248
09/22/07 15:09
09/22/07 15:09
Joined: Jan 2007
Posts: 1,619
Germany
Scorpion Offline
Serious User
Scorpion  Offline
Serious User

Joined: Jan 2007
Posts: 1,619
Germany
i have got the same problem with model-transparency...
Version: 7.05

Re: Panels alpha-value < 50 makes panel invisible [Re: deleRium] #156249
09/22/07 16:01
09/22/07 16:01
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline
Senior Expert
HeelX  Offline
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
would you please make a small executable demo that shows the wrong behaviour?

Re: Panels alpha-value < 50 makes panel invisible [Re: HeelX] #156250
09/22/07 21:52
09/22/07 21:52
Joined: Sep 2007
Posts: 42
Germany - Braunschweig
deleRium Offline OP
Newbie
deleRium  Offline OP
Newbie

Joined: Sep 2007
Posts: 42
Germany - Braunschweig
@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.

Re: Panels alpha-value < 50 makes panel invisible [Re: deleRium] #156251
09/27/07 11:55
09/27/07 11:55
Joined: Sep 2007
Posts: 42
Germany - Braunschweig
deleRium Offline OP
Newbie
deleRium  Offline OP
Newbie

Joined: Sep 2007
Posts: 42
Germany - Braunschweig


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1