Search Issue Tracker

Fixed in 2021.1.X

Fixed in 2019.4.X, 2020.3.X

Votes

1

Found in

2018.4.24f1

2018.4.28f1

2019.4

2020.1

2020.1.0a12

Issue ID

1284374

Regression

Yes

[Sprites] [iOS] PVRTC Format Atlas variant made from ASTC Format Master Atlas is stretched

iOS

-

Reproduction steps:
1. Open project in "AtlasVariantCompression.zip"
2. Go to Assets > Sprites > NonSquare folder
3. Create a new Sprite Atlas (master) and add "NS" Sprite for packing
4. Set Format to RGB(A) Compressed ASTC (any block) (option for iOS)
5. Pack preview and inspect the image
6. Create a new Sprite Atlas, set its type to Variant, and set its Master Atlas to the one you created in step 3
7. Change Format to RGBA Compressed PVRTC (any bit value) (option for iOS)
8. Pack preview and inspect the image

Expected result: Variant looks the same as Master in preview
Actual result: PVRTC Variant is stretched

Reproducible with: 2018.4.24f1, 2018.4.28f1, 2019.4.12f1, 2020.1.10f1, 2020.2.0a12, 2020.2.0b7 (2D Sprite 1.0.0)
Not reproducible with: 2018.4.23f1, 2020.1.0a11

1. Issue only happens when the Format of the variant is set to PVRTC and the Format of the master is set to ASTC
2. While testing this issue Editor crashes about 1/3 times
3. The issue does not seem to reproduce with other combinations of master/variant Formats
4. Not reproducible with Android PVRCT and ASTC Formats
4. Issue has been backported to 2018.4, 2019.4, 2020.1 streams

  1. Resolution Note (fix version 2021.1):

    Fixed by changing PVRTC variant atlas size adjustment to use padding rather than stretching when the master atlas is not square and the variant requires a square texture. This was the prior behaviour before a regression caused the atlases to be stretched.

    If the master atlas is not square, the variant will contain a transparent area instead of stretching

    Fixed in: 2021.2.0a4.739

  2. Resolution Note (fix version 2021.1):

    Fixed in 2021.1.0b10.2062

  3. Resolution Note (fix version 2020.3):

    Fixed in 2020.3.1f1.56

  4. Resolution Note (fix version 2019.4):

    Fixed in 2019.4.23f1 (4ab69048f7b8)

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.