EXR vs HDR: which format for your HDRI?
Updated
Both formats store the real brightness of a scene, and both light a 3D scene well. EXR keeps more precision and more options. HDR is smaller, and some tools import it more easily. Keep the EXR as your master and make an .hdr copy if a tool asks for one.
| OpenEXR (.exr) | Radiance HDR (.hdr) | |
|---|---|---|
| Stores | A floating-point value per channel, 16-bit half or 32-bit float | 8 bits each for red, green and blue, plus one shared 8-bit exponent |
| Precision | High in every channel | About 1%, and a dim channel beside a bright one loses detail |
| Negative values | Yes | No |
| Compression | Lossless (PIZ, ZIP) or lossy (DWA) | Simple run-length |
| Size at 4096 × 2048 | 101 MB before compression for 32-bit RGB | 34 MB before compression |
| Extras | Multiple layers and metadata | One image |
Which one to use
- Blender, Nuke, Houdini, Cinema 4D, Maya: use the EXR.
- Unreal Engine: Unreal turns a lat-long .hdr into a cube texture on import. If your .exr comes in as a flat texture, save a .hdr copy. See the Unreal steps.
- Sharing a smaller file: an .hdr copy is usually fine for lighting.
Half or 32-bit EXR?
A 16-bit half EXR tops out at 65,504, and a direct sun can go past that in scene-linear values. A 32-bit EXR has room for it, at the cost of a bigger file. HDRI Studio writes RGB 32-bit float with PIZ compression in linear Rec.709.
Questions
Is EXR better than HDR?
For precision and flexibility, yes. For lighting alone, both work, and the difference is often hard to see. Keep the EXR as your master, because you can always make an .hdr from it.
Does converting EXR to HDR lose quality?
A little. The brightness range survives, but you lose some colour precision, any negative values and any extra layers.
How do I convert an EXR to HDR?
Open the EXR in Blender's Image Editor, choose Image, then Save As, and pick Radiance HDR as the file format. Photoshop and Affinity Photo can do it too.
Why is my EXR so big?
A 32-bit RGB image stores 12 bytes per pixel before compression. A 4K capture from HDRI Studio is about 78 MB with PIZ compression, and an 8K one can pass 300 MB.