#14176 - DragonPoof - Wed Dec 31, 2003 8:45 pm
Alright. I've started some GBA devving but this Sprite Transparency is killing me. For some reason I just CANNOT get it to work. I've looked through to previous threads, checked out tutorials and everything. I just can't seem to get it to work in my program (Screen Mode 1. 256 color sprites. Obj is enabled. 1d Mapping.)
Here's what I have so far. I have a simple 16x16 sized sprite in which it's palette 0 is color (255,0,255) [bright pink]. I'm using Photoshop to create the sprites so I've edited my color table so the first color is the bright pink color I want to be transparent. Fine, great, it works awesome. I run my pcx file through Dovoto's pxc2sprite program to convert it. I only have one sprite so I don't need to worry about conflicting palettes. I just read in the palette and then plop my sprite information into the "OAMData".
So, here's the problem: my bright pink color does NOT show up transparent and I really can't figure out why. I set the value of attribute0 of my sprite to all the correct stuff, including MODE_TRANSPARENT (0x400). Even with that in there it still does not show up transparent. Am I doing something wrong? I just cannot seem to find the solution. Maybe when Photoshop saves a PCX file the locations of the colors in the table are not the same as the palette? Does pcx2gba switch colors?
I've even tried explicitly grabbing a color randomly from my Sprite, placing it at the first location of the sprite data array, as well as placing that same color explicitly into OBJPaletteMem[0], and the color still shows up on the sprite and is not transparent.
I must be missing something. I just don't know what it is. If you need more information I would be happy to supply it. Any help is appreciated. Thanks.
_________________
LoomSoft.net
Here's what I have so far. I have a simple 16x16 sized sprite in which it's palette 0 is color (255,0,255) [bright pink]. I'm using Photoshop to create the sprites so I've edited my color table so the first color is the bright pink color I want to be transparent. Fine, great, it works awesome. I run my pcx file through Dovoto's pxc2sprite program to convert it. I only have one sprite so I don't need to worry about conflicting palettes. I just read in the palette and then plop my sprite information into the "OAMData".
So, here's the problem: my bright pink color does NOT show up transparent and I really can't figure out why. I set the value of attribute0 of my sprite to all the correct stuff, including MODE_TRANSPARENT (0x400). Even with that in there it still does not show up transparent. Am I doing something wrong? I just cannot seem to find the solution. Maybe when Photoshop saves a PCX file the locations of the colors in the table are not the same as the palette? Does pcx2gba switch colors?
I've even tried explicitly grabbing a color randomly from my Sprite, placing it at the first location of the sprite data array, as well as placing that same color explicitly into OBJPaletteMem[0], and the color still shows up on the sprite and is not transparent.
I must be missing something. I just don't know what it is. If you need more information I would be happy to supply it. Any help is appreciated. Thanks.
_________________
LoomSoft.net