Page 1 of 1

Problem with transparent sprite

Posted: Thu Dec 02, 2004 3:56 pm
by Nelligan
I'm having problems with the transparent color in my project. Ive set it to pure green 0,255,0 and it is working most of the time. But on a couple of machines the green is showing rendering the app unusable. I resize the screen in 800x600,16bpp with the Screenex library by the way. I'v tried changing the desktop color depth with no effect.

Here are a couple of configurations with wich I have the problem:

Pentium 233, 128mb RAM, ATI Rage 128
Pentium 120, 16mb RAM, ATI ProTurbo
Pentium 166, 32mb RAM, Cirrus Logic 5446
Pentium 233, 256mb RAM, Cirrus Logic 5434
Pentium 133, 64mb RAM, ATI Rage II

The graphic format I use is PNG. Is there something about the dimensions of the pics not fitting in video memory because of their size like with 3D sprites or something I don't know?


Thank you for any help you can give

Posted: Thu Dec 02, 2004 4:38 pm
by Pupil
Try to use 'Point()' on a pixel that you know is green on the image and see what it returns.. Might be some problem with different pixelformats?

Posted: Thu Dec 02, 2004 4:46 pm
by Nelligan
Do you mean like the image is indexed or rgb etc... If that's what you mean then I verified it since it was causing problems earlier when it was indexed.

I will try your trick for sure it's just that I don't have the problem machines at home so I'm making a list of things to try for when I'll go work on them.


Thank you

Posted: Thu Dec 02, 2004 5:38 pm
by dontmailme
I have the same problem, been around for quite a while now !

Try using a different screendepth and see what happens, it fixes the problem for me. This is OK for your own machine but it makes distribution a problem !

I think it's a graphics card problem ?!

Posted: Thu Dec 02, 2004 5:46 pm
by PolyVector
I've found it's always safest to use pure black as the transparent color (or grab it from a known transparent pixel (top-left?)). different color depths and conversions can slightly change colors... But 0 is always 0 :D

Posted: Thu Dec 02, 2004 5:50 pm
by Nelligan
Thank you all for the answers. I wonder what would be the easiest way since I noticed the problem far in the project and I have more than 300 images.

I'll try your suggestions for sure.


Thank you