Search Issue Tracker
By Design
Votes
1
Found in
2021.3.34f1
2022.3.17f1
2023.2.4f1
2023.3.0b1
Issue ID
UUM-60196
Regression
No
Pixelation distortion occurs when using a Non-Power Of Two (NPOT) dimension sprites
Reproduction steps:
1. Open the attached project “PixelProject”
2. Open the “Assets/IN-40632_Assets/Scenes/SampleScene.unity” scene
3. Build And Run on Android
4. Observe the Image(i.e. on top) on the app’s screen
Expected result: The distance between each pixel in the image is consistent
Actual result: The pixels are distorted (uneven gaps in the sprites)
Reproducible with: 2021.3.34f1, 2022.3.17f1, 2023.2.4f1, 2023.3.0b1
Reproducible with these devices:
VLNQA00518 - Google Pixel 4 (Pixel 4), CPU: Snapdragon 855 SM8150, GPU: Adreno 640, OS: 12
VLNQA00414 - Galaxy Note10+ 5G (SM-N976V), CPU: Snapdragon 855 SM8150, GPU: Adreno 640, OS: 9
VLNQA00278 - Xiaomi Redmi Note 7 (Redmi Note 7), CPU: Snapdragon 660, GPU: Adreno 512, OS: 9.0.0
VLNQA00139 - Vivo Xplay6 (vivo Xplay6), CPU: Snapdragon 820 MSM8996, GPU: Adreno 530, OS: 7.1.1
VLNQA00132 - Xiaomi Mi 5s (MI 5s), CPU: Snapdragon 820 MSM8996, GPU: Adreno 530, OS: 6.0.1
VLNQA00494 - iPhone 14 Pro Max, 16.3.1 iOS
VLNQA00358 - iPhone 12, 14.1 iOS
Not Reproducible with these devices:
VLNQA00392 - iPad (9th generation), 15.0 iOS
VLNQA00310 - iPad Pro 12.9", 13.4.1 iOS
Testing environment: macOS(Intel) 14.2.1
Notes:
1. Setting the texture atlas to use Bilinear filtering resolves the pixel swimming but blurs the sprite, which is problematic because the game uses pixel art.
2. The issue can be resolved by saving the sprite as a 256x256 sprite (with some padding) and then using borders in the sprite editor to get back to what is needed. Unfortunately, although this clears up the pixel swimming, colliders set to the sprite size are misaligned (and make authoring sprites more complex).
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Unity CIL Linker fails on Player build when persistent listeners have "<" and ">" in their XML attribute names
- ”Lighting data asset ‘LightingData’ is incompatible with the current Unity version…” warnings are thrown when saving Indoors (URP) and Outdoors (URP) Scenes as Scene Templates
- [iOS] The screen blinks when transitioning from custom to Unity splash screen
- [macOS] ”Ignoring depth surface load action as it is memoryless” warnings are thrown when taking Game View Snapshot
- UI Builder Inspector scrolls back up when changes on an expanded but not fully displayed Inspector tab are saved
Resolution Note:
Unity recommends using power-of-two (POT) textures for sprites. Non power-of-two (NPOT) textures will produce visual aliasing artifacts (reduced by using linear texture sampling, but not entirely resolving the artifacts).