Problem with transparent sprite

Everything else that doesn't fall into one of the other PB categories.
Nelligan
User
User
Posts: 13
Joined: Sat May 10, 2003 6:04 am

Problem with transparent sprite

Post 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
Pupil
Enthusiast
Enthusiast
Posts: 715
Joined: Fri Apr 25, 2003 3:56 pm

Post 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?
Nelligan
User
User
Posts: 13
Joined: Sat May 10, 2003 6:04 am

Post 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
dontmailme
Enthusiast
Enthusiast
Posts: 537
Joined: Wed Oct 29, 2003 10:35 am

Post 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 ?!
Paid up PB User !
PolyVector
Enthusiast
Enthusiast
Posts: 499
Joined: Wed Sep 17, 2003 9:17 pm
Location: Southern California
Contact:

Post 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
Nelligan
User
User
Posts: 13
Joined: Sat May 10, 2003 6:04 am

Post 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
Post Reply