Transparency Issue

Alright, This is bugging the heck out of me.

I have the latest version of SDL, etc., and still, I get a bunch of weird
colors where it should be transparent. The transparency works IF im in
windowed mode however.

Anyone else getting this?

-Bryan Arant

Details? Windows? Linux? What colour depth is your X server running
at? What colour depth are you starting SDL with? Is it GL Surface or
normal? Colour-Key or Alpha Channel? HW Surfaces or SW?On Sat, 2002-02-16 at 03:37, Bryan Arant wrote:

Alright, This is bugging the heck out of me.

I have the latest version of SDL, etc., and still, I get a bunch of weird
colors where it should be transparent. The transparency works IF im in
windowed mode however.

Anyone else getting this?

-Bryan Arant


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

End of Rant.

Jimmy
JimmysWorld.org
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: This is a digitally signed message part
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20020216/0f146961/attachment.pgp

I have the latest version of SDL, etc., and still, I get a bunch of
weird
colors where it should be transparent. The transparency works IF im in
windowed mode however.

Anyone else getting this?

I don’t get the exact symptoms you do. But if I add this line to my
code:

SDL_SetAlpha(playerGraphic, SDL_SRCALPHA, 128);

then it seems to give lots of "DirectDrawSurface3::lock: Surface busy"
errors in fullscreen mode. It is fine in windowed mode (although 4 FPS
is slightly worse than I can accept…) SDL_SetAlpha doesn’t return an
error. No idea what’s wrong here, but maybe it’s related? But maybe you
mean colorkeying rather than the alpha blending. (FWIW, I’m using
Windows obviously, 4MB video memory, everything converted to the screen
format.)From: bryan@barant.com (Bryan Arant)
Sent: Saturday, February 16, 2002 8:37 AM
Subject: [SDL] Transparency Issue


Kylotan

Windows, 16 bit color depth, desktop is at 32.

No GL Shtuff, all 2d. Color Key, HW Surface, and DoubleBuf.

I set it up like so:

if(e_temp == NULL) {
	LOG.WRITE(SDL_GetError());
	exit(1);
}

if(SDL_SetColorKey(e_temp, SDL_SRCCOLORKEY|SDL_RLEACCEL,

SDL_MapRGB(e_temp->format, 0, 0, 255)) == -1) {
LOG.WRITE(SDL_GetError());
exit(1);
}

energy_bar = SDL_DisplayFormatAlpha(e_temp);
if(energy_bar == NULL) {
	LOG.WRITE(SDL_GetError());
	exit(1);
}

SDL_FreeSurface(e_temp);

-Bryan Arant> ----- Original Message -----

From: sdl-admin@libsdl.org [mailto:sdl-admin at libsdl.org]On Behalf Of
Jimmy
Sent: Saturday, February 16, 2002 1:14 AM
To: SDL Mailing List
Subject: Re: [SDL] Transparency Issue

Details? Windows? Linux? What colour depth is your X server running
at? What colour depth are you starting SDL with? Is it GL Surface or
normal? Colour-Key or Alpha Channel? HW Surfaces or SW?

On Sat, 2002-02-16 at 03:37, Bryan Arant wrote:

Alright, This is bugging the heck out of me.

I have the latest version of SDL, etc., and still, I get a bunch of weird
colors where it should be transparent. The transparency works IF im in
windowed mode however.

Anyone else getting this?

-Bryan Arant


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

End of Rant.

Jimmy
JimmysWorld.org