PVRTC alpha channel?

Hi,

I’m having problems in getting the alpha channel of PVRTC textures to work correctly.

Looks like the alpha channel always wraps around (or something?), which generates some unwanted pixels on the first row of the texture (take a look at the attached picture, you can see the extra pixels on the first row).

Texture wrap mode is set to “clamp”. I’ve tried messing around with all possible settings with no luck. The texture works perfectly on 16/32-bit.

Does this have something to do with PVRTC in general, or is the PVRTC import broken (I’m on U3 beta 7)?

br,
Sami

378831--13115--$texture_alpha_mess_590.jpg

This is an unavoidable problem with PVRTC compression generally. You can set your texture’s repeat mode to clamp, but it will do nothing. PVRTC textures must always wrap, since they share information with adjacent blocks of pixels. Thus, a block on the right side is sharing data with a block on the left side of the texture map.

OK,

Thanks. This is exactly what I was suspecting… Gotta go with 16-bit texture in this case, then.

br,
Sami