Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
0 registered members (), 631 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 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