I have seen this issue frequently. It seems that some textures, when compressed with mipmaps enabled, will get a pink block of pixels or line mixed in. The pink pixles come and go as camera distance varies.
I have tried to un-compress, then re-compress textures like this. It seems that the pink lines may move to another area, but won’t go away completely.
Commonly, these artifacts occur in areas of the texture that are just a white (or near-white) field, with no or very little detail, as in the image above.
Is there a work-around? Some combination of settings that I can try? So far, my only solution is to leave textures uncompressed, but that’s no good for mobile devices.
VRAM compression is lossy, so there can be artifacts in some textures especially textures like that (letter with lining). If you aren’t able to resolve that then you will have to disable compression.
Also is this a repeating texture? If not and it’s only tiled once then set Address UV to Clamp. That can get rid of artifacts in the border of the texture (this isn’t related to compressed to textures but to all textures in general).
@Cain_Quigley What formats/devices do you see these artifacts on? We use different tools for the compression so this will help us narrow this down a bit
Hi, thanks! Thanks a big step in the right direction. We have been using JPG where possible. But, since we are going to be compressing most textures anyway, it makes sense that we can use PNGs.
Could these issues be related to compressing an already-compressed format, like JPG?
Well, it’s also possible that I’ve been getting lucky. Since the problem seems to be related to mipmaps, and because I tend to constrain the camera for our projects, there may be ‘altered’ texture levels that just never get used/seen.
IOW, my testing has been far from exhaustive. I ship 5-7 projects a week sometimes! I regret that often I just don’t have the time. My boss says he’s hiring me an assistant, though. We’ll see how that goes.
Hahaha yeah I know that feeling, I’ve only ever run into a problem with using JPG for like one texture, otherwise I guess I don’t notice it or something!
Thanks, Chandler. I guess I’ve been in the industry a while, yeah.
Here’s another interesting ‘compression artifact’ but it’s not related to mipmaps, this time. It’s related to cubemaps. After compressing the JPEGs for the cubemap (without mipmaps), I am seeing the images have become inverted! …not all the images, though…just the front/back/left/right ones.