|
|
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
FBL
OP
Senior Expert
|
OP
Senior Expert
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
FBL
OP
Senior Expert
|
OP
Senior Expert
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]
#346782
11/09/10 19:15
11/09/10 19:15
|
Joined: Feb 2008
Posts: 3,232 Australia
EvilSOB
Expert
|
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: FBL]
#346841
11/10/10 07:18
11/10/10 07:18
|
Joined: Feb 2008
Posts: 3,232 Australia
EvilSOB
Expert
|
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
|
|
|
|