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
6 registered members (Quad, miwok, Martin_HH, AndrewAMD, alibaba, dpn), 584 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Warning W1553 - Can't create alpha #346592
11/07/10 21:03
11/07/10 21:03
Joined: Sep 2003
Posts: 9,859
F
FBL Offline OP
Senior Expert
FBL  Offline OP
Senior Expert
F

Joined: Sep 2003
Posts: 9,859
Ok, the manual says....

"Die Textur ist statisch und läßt sich nicht in eine Overlay- oder Alpha-Textur konvertieren."

But what does this really mean?
I have several 8 Bit textures and some work, some don't.
All of them are loaded and created at runtime, so what's the deal with "static"?

Re: Warning W1553 - Can't create alpha [Re: FBL] #346620
11/08/10 10:11
11/08/10 10:11
Joined: Jul 2000
Posts: 27,967
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,967
Frankfurt
This is a message from the time when Gamestudio could not yet load alpha textures. For engine-supported formats, such as BMP, PCX, or TGA, you could create an alpha channel after loading. But when you try this with texture formats that are loaded by DirectX and not by the engine, you get that message.

Re: Warning W1553 - Can't create alpha [Re: jcl] #346652
11/08/10 16:26
11/08/10 16:26
Joined: Sep 2003
Posts: 9,859
F
FBL Offline OP
Senior Expert
FBL  Offline OP
Senior Expert
F

Joined: Sep 2003
Posts: 9,859
I'm loading a palettized pcx with bmap_create().
Some work, some don't.

Re: Warning W1553 - Can't create alpha [Re: FBL] #346655
11/08/10 16:47
11/08/10 16:47
Joined: Sep 2003
Posts: 9,859
F
FBL Offline OP
Senior Expert
FBL  Offline OP
Senior Expert
F

Joined: Sep 2003
Posts: 9,859
Ah wait.... I I'm doing a bmap_blitpart() on some bitmaps for adjusting scale to power of 2. Is this DirectX based?

Last edited by Firoball; 11/08/10 16:49.
Re: Warning W1553 - Can't create alpha [Re: FBL] #346668
11/08/10 17:31
11/08/10 17:31
Joined: Sep 2003
Posts: 9,859
F
FBL Offline OP
Senior Expert
FBL  Offline OP
Senior Expert
F

Joined: Sep 2003
Posts: 9,859
Ok, I can confirm this is caused by the bmap_blitpart function.
Unfortunately whenever I try to change the bits per pixel I get the same message for any bitmap I modified with bmap_blitpart. I've checked the returned format... it is 565 like for all other textures, but the message remains.

bmap_to_alpha also cannot convert - it delivers the same message.

I've read the text above again... does this really mean there is no way to get an alpha channel for bitmaps which were copied/modified or loaded via some DirectX command? Even bmap_to_alpha won't work?
Gnarf.... this is a real showstopper.

Last edited by Firoball; 11/08/10 17:37.
Re: Warning W1553 - Can't create alpha [Re: FBL] #346740
11/09/10 12:41
11/09/10 12:41
Joined: Jul 2000
Posts: 27,967
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,967
Frankfurt
Yes, I'm afraid this is correct. bmap_to_alpha was a relict from the A4 software renderer and does not support DirectX. It was never adapted because, I believe, no one used this command in the last 5 years.

Re: Warning W1553 - Can't create alpha [Re: jcl] #346764
11/09/10 16:29
11/09/10 16:29
Joined: Sep 2003
Posts: 9,859
F
FBL Offline OP
Senior Expert
FBL  Offline OP
Senior Expert
F

Joined: Sep 2003
Posts: 9,859
I'm not using it either. bmap_create() seems to take care of everything just fine. Also bmap_createblack() does not show any problem. Only as soon as I copy into the bmap_createblack created bitmap using bmap_blitpart from a bmap_create created bitmap I'm doomed...

Re: Warning W1553 - Can't create alpha [Re: FBL] #346782
11/09/10 19:15
11/09/10 19:15
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
I had problems similar to this a while back, but it was target_map rather than
bmap_blitpart that threw up the same error.

It was occuring when the 'source' bmap and the 'target' bmap didnt have matching alpha parameters.
ie ::
a> if source has alpha channel, and target has alpha channel == no problem.
b> if source has NO alpha channel, and target has NO alpha channel == still no problem.
C> if source has alpha channel, and target has NO alpha channel == W1553
D> if source has NO alpha channel, and target has alpha channel == W1553

So do a double-check to see that the target bmap_createblack is 24-bit if your PCX's have no alpha channel.
Even though the PCX is 16-bit, tell the createblack to use 24 bit...
(are pcx's even capable of having an alpha channel? I didnt think so, but I never use them so Im not sure)
If your pcx does have an alpha channel, double-check that the bmap_create("xxx.pcx")
actually retrieves it. And if it does, make sure your target createblack is set to 32-bit...

Hope this helps some....




"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: Warning W1553 - Can't create alpha [Re: EvilSOB] #346814
11/09/10 22:33
11/09/10 22:33
Joined: Sep 2003
Posts: 9,859
F
FBL Offline OP
Senior Expert
FBL  Offline OP
Senior Expert
F

Joined: Sep 2003
Posts: 9,859
Well I don't really need alpha. I only need the overlay feature (making black parts transparent) and the translucent flag. Both should not need a real alpha channel.

bmap_Create seems to convert palettized 8 bit to 565 16 Bit format - which seems to be fine for OVERLAY and TRANSLUCENT. But whenever there is bmap_blitpart soemwhere inbetween, this won't work anymore.
I've tried covnerting the format, I've checked the formats with bmap_lock... but there doesn't seem to be a working combination. Unfortunately.

I guess that bmap_blitpart is a wrapper for some DirectX function...

Re: Warning W1553 - Can't create alpha [Re: FBL] #346841
11/10/10 07:18
11/10/10 07:18
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
Can you post, or point out some "palettized pcx"'s please?
Preferably stating whish do work and which dont, if possible.

I dont have SW at work that lets me create pcx's with palettes...


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Page 1 of 2 1 2

Moderated by  old_bill, Tobias 

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