- Home /
DXT1-5 => BC1-3 Compression Compatibility
The Unity Engine uses TextureFormat.DXT1 and TextureFormat.DXT5 as compression format options for Texture2D but, if I understand correctly, these have been superceded by BC1 and BC3 formats respectively, which are not available as options in Unity. As such, if I try to use a tool such as PVRTexTool which uses the newer BC1-BC3 format, then it fails to load the texture data with the exception UnityEngine.UnityException: LoadRawTextureData: not enough data provided (will result in overread) (using DXT1 in this example).
If I replace the texture format with DXT1Crunched, then loading the raw texture data is successful, but the call to texture.Apply() then raises the following two exceptions:
Failed getting crunch texture info.
Failed to decompress Crunch texture data (size 2048x2048 format 28 mips 12)
So, my questions are:
Is it possible to map between DXT and BC compression formats in Unity?
If not, when will Unity support the more recent implementations (I am currently on 2019.3.10)?
Thank you
$$anonymous$$isunderstanding resolved. The cause was a $$anonymous$$ip$$anonymous$$aps-related issue - removing the maxmips argument allowed loading of a BC1 compressed texture to Unity DXT1 texture format.
Your answer
Follow this Question
Related Questions
Textures are distorted when building for android 2 Answers
Android: Preparing textures for 16-bit compression 1 Answer
Does Unity decompress Truecolor RGBA format textures when loading? 0 Answers
Android tablet crashes depending on texture compression 0 Answers
What is the most practical way to convert NPOT textures to POT for an almost finished game? 5 Answers