Search Issue Tracker
Fixed
Fixed in 6000.0.56f1, 6000.2.1f1, 6000.3.0a1
Won't Fix in 2022.3.X
Votes
0
Found in
2022.3.58f1
6000.0.39f1
6000.1.0b7
6000.2.0a4
6000.3.0a1
7000.0.0a20
Issue ID
UUM-97688
Regression
No
Texture2D.PackTextures causes mips 7-9 to turn pink/white when packed textures are of ASTC 4x4 compression
How to reproduce:
1. Open the “MipsBug.zip“ project
2. Open the “SampleScene“
3. Change the Platform to Android
4. Enter Play Mode
5. Select the “Terrain“ GameObject in the Hierarchy
6. Find and double-click the “Test Texture“ Texture field at the bottom of the Inspector
7. Change the Mip levels in the Preview in the Inspector
8. Observe the Preview
Expected result: All mips are rendered correctly
Actual result: mips 7-9 are rendered either in pink or white
Reproducible in: 2022.3.58f1, 6000.0.39f1, 6000.1.0b7, 6000.2.0a4
Reproduced on: Windows 11 Pro (23H2)
Not reproduced on: No other environment tested
Notes:
- The Android platform has to be active for the images to be in ASTC 4x4 compression format
- After 2023.2.0a5, behaviour differs between the editor and the player: instead of mips 7-9 always being pink/purple, the mentioned mips become white in the editor exclusively.
- If empty space is left after packing, "background color" is the same as the color seen in mips 7-9.
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
- URP Realtime reflection probes do not update when RenderProbe() is being called once per second
- Addressable terrain shader variants are stripped from the Player
- [iOS] Debug.Log() appears as <private> in Console app
- UI stays in the background when it is disabled in simulator
- A wrong log file is attached when project is launched with a "-logFile" command line argument
Resolution Note (fix version 6000.3.0a1):
Compressed texture atlases no longer produce invalid mipmaps for smaller atlas items by limiting the number of miplevels. This is based on the miplevel where the smallest atlas item is exactly one compression block large.
To work around potential GPU texture sampling performance issues: try grouping items of similar sizes together in different atlasses to limit the amount of atlas items with a fairly large smallest miplevel.
Resolution Note (2022.3.X):
With 2022.3 being in Extended LTS, backporting this could end up bringing more pain than it would solve by breaking existing projects that rely on the existing behaviour and / or potentially affecting performance.
As such, at this time, we are opting to close this port out as "Won't Fix".