OpenEXR
From Wikipedia, the free encyclopedia
OpenEXR is a high dynamic range imaging image file format, released as an open standard along with a set of software tools created by Industrial Light and Magic, released under a Free software license similar to the BSD license.
It is notable for supporting 16-bits-per-channel floating point values (half precision), with a sign bit, five bits of exponent, and a ten-bit mantissa. This allows a dynamic range of over thirty stops of exposure.
OpenEXR is directly supported by Artizen HDR, Blender, Houdini, Lightwave, modo, After Effects 7 Professional, Mental Ray, PRMan, Digital Fusion, Nuke, Toxik, Shake, Photoshop CS2 and Pixel Image Editor. It is also supported by the Cg programming language and Mac OS X as of version 10.4.
Lossless compression of high dynamic range data is also supported.
Contents |
[edit] OpenEXR Overview
For a full technical introduction of OpenEXR, please see the Technical Introduction available on the OpenEXR.org website. A link to this document can be found in the External Links section.
OpenEXR, or simply EXR for short, is a deep raster format developed by ILM and very broadly used in the CG industry, both visual effects and animation.
OpenEXR's multi-resolution and arbitrary channel format makes it appealing for compositing. OpenEXR alleviates several painful elements of the compositing process. Since it can store arbitrary channels, specular, diffuse, alpha, RGB, normals, and various other types of channels in one file, it takes away the need to store this information in separate files. The multi-channel concept also reduces the necessity to "bake" in the before mentioned data to the final image. If a compositer is not happy with the current level of specularity, he or she can adjust that specific channel.
OpenEXR's straightforward API also makes tools development a relative ease for developers. Since there's almost never two production pipelines that are the same, custom tools always need to be developed to address problems in the production process. Many times these tools are to address some type of image manipulation issue. OpenEXR's library reduces the pain of having to manage bulky header information and allows quick and easy access to the image's attributes such as tiles and channels.
[edit] History
OpenEXR began life at ILM in 1999. In 2003, OpenEXR was released to the public.
[edit] Compression methods
There are 3 general types of lossless compression built into OpenEXR, with two different methods of Zip compressing. For most images without a lot of grain, the two Zip compression methods seem to work best, while the PIZ compression algorithm is better suited to grainy images. The following options are available:
- None
- Disables all compression.
- Run Length Encoding (RLE)
- This is a basic form of compression that is comparable to that used by standard Targa files.
- Zip ( per scanline )
- Zip style compression applied to individual scanlines.
- Zip ( 16 scanline blocks)
- Zip style compression applied to blocks of 16 scanlines at time. This tends to be the most effective style of compression to use with rendered images that do not have film grain applied.
- PIZ ( wavelet compression )
- This uses a new combined wavelet / Huffman compression. This form of compression is quite effective when dealing with grainy images, and will often surpass any of the other options under grainy conditions.
[edit] Credits
From OpenEXR.org's Technical Introduction:
The ILM OpenEXR file format was designed and implemented by Florian Kainz, Wojciech Jarosz, and Rod Bogart. The PIZ compression scheme is based on an algorithm by Christian Rouet. Josh Pines helped extend the PIZ algorithm for 16-bit and found optimizations for the float-to-half conversions. Drew Hess packaged and adapted ILM's internal source code for public release and maintains the OpenEXR software distribution. The PXR24 compression method is based on an algorithm written by Loren Carpenter at Pixar Animation Studios.
[edit] Developing with OpenEXR
The OpenEXR library is developed in C++ and is available in source format as well as compiled format for Windows and MacOS X. Careful attention was taken to ensure that OpenEXR easily compiles on almost any platform that supports C++.
As of version 1.3.0, released on June 8th 2006, support for multithreaded reading and writing was added to OpenEXR. Multithreaded reading and writing offers a higher performance gain for systems that have multiple cores or CPUs. OpenEXR handles reading and writing by a means of a thread pool.