Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Norman3D's avatar
Norman3D
Expert Protege
9 years ago
Solved

ASTC compression in Unreal 4 not compressing HDR textures

This guide over here recommends using ASTC over ETC2. It makes perfect sense for my project as we are using quite a few HDR textures and ASTC is excellent at compressing these:
http://malideveloper.arm.com/documentation/developer-guides/arm-guide-unity-enhancing-mobile-games/

However I've noticed that Unreal 4 does not compress HDR textures at all with ASTC, I suspect because such functionality has not been implemented in the Cooker. Is this also the case with Oculus's branch of Unreal?

3 Replies

Replies have been turned off for this discussion
  • Norman3D's avatar
    Norman3D
    Expert Protege


    Hi,

    We don't encourage developers to use HDR on mobile, as there would be a large bandwidth cost.




    This is not the same as mobile HDR (which is what I believe you are referring to.) This issue happens specifically with HDR textures. The issue is that Epic has not fully implemented ASTC, so HDR textures for example are not compressed causing a huge memory footprint. Compressed textures are totally fine on memory and on disk.
    My current workaround consist of using LogLuma encoding and saving it as an 8bit RGB. I then de-encode it in the shader. Unfortunately it costs me a bit on the pixel shader, which I would be able to avoid if ASTC HDR compression was implemented. I can still manage with the LogLuma encoding, it's just that I'd rather not use it if it was possible :)