[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Alpha Channel



Hi Luke

I don't know if it crosses my problems I had with alpha channeling and png. As I heard it also was (is?) a problem with Flash: If you use a png with alpha channels and there is not a single transparent pixel inside the image you get weird color fillings around an object.
If your problems comes close to this you can solve it that way:
1. Use a graphic program like Photoshop or Gimp
2. Load your image
3. Add a transparent layer in the backround
4. Change back to the loaded image and deleted a single pixel, so the background (transparent) is visible where you deleted the pixel
5. Safe it as png and try again


Hope this helps
Farai


Am 21.04.2006 um 03:12 schrieb Luke Paireepinart:

AMMayberry1@xxxxxxxxxxxx wrote:
OK, that helped a bit. Let me explain my problem a little more clearly. I'm trying to do a pirate ship, from an overhead perspective. The sails are partly transparent. What happens when I load it is, the parts of the sails that are over the deck of the ship work just fine, always have. The problem is with the part that sticks out beyond the deck. Unlike the other parts of the sails, the bit that sticks out, over the pygame screen, becomes solid white. Any ideas?

__________________________________________________________________
Switch to Netscape Internet Service.
As low as $9.95 a month -- Sign up today at http:// isp.netscape.com/register


Netscape. Just the Net You Need.

New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp


are the sails part of the same image or a different image than the ship deck?
is your background white?