PNG alpha texture glitch?
Blitz3D Forums/Blitz3D Beginners Area/PNG alpha texture glitch?
| ||
Hello. I'm using sprites with PNG textures with alpha channel and once in a while I'm getting small black likes on the edges of the sprite... Is it my software (PaintShopPro 8.10), blitz3d or my graphics driver? Anyone had similar problems? |
| ||
Flimmering? That could be Z-ordering Issues... discribe it more clearly |
| ||
No I have had this too, Transparent pngs when used as sprites sometimes show edges. Try using a power of 2 size I think that might be part of the problem. so 64 x 64 128 x 128 256 x 128 you know the drill. IPete2. |
| ||
No, that's not working... i can't remember sprites doing that if they are just transparent pngs... Only if I use alpha-transparrency... Hmmm... |
| ||
Anatoly, I'll go and check out a recently revived project of mine. It too was suffering from a problem of strange edges appearing where there was nothing. I did fix it so I'll check out how. In the meantiume is there anyway you can use a masked version instead? IPete2. |
| ||
I guess I can, sprites will have more sharper edges, but it's alright - even though my game has lots of them and they are huge! ;-) |
| ||
Sounds like fringing to me. What does your color channel look like? For example, if you wanted a green circle, the alpha channel would be black with a white circle, and the color channels would be solid green. If you have a green circle with black around it in your color channel, that black is getting pulled in by the filtering and showing up, creating a fringe. Make sense? |
| ||
I agree with pongo. Use a more similar colour for the alphaed areas of the texture. |
| ||
Clamp the UVs. |