Skip to content

MercenariesEngineering/openexrid

Repository files navigation

Synopsis

We present a new storage scheme for computer graphic images based on OpenEXR 2.

Using such EXR/Id files, the compositing artist can isolate an object selection (by picking them or using a regular expression to match their names) and color correct them with no edge artefact, which was not possible to achieve without rendering the object selection on its own layer.

The technique is demonstrated in an open source software suite, including a library to read and write the EXR/Id files, Nuke deep plug-ins and an OpenFX plug-in which generate the images in any compositing software.

Motivation

During animation and VFX productions, the compositing department needs the rendering team to render some id masks images or to separate the rendering in layers to perform compositing operations on parts of the images. The needed mask or layer may change from a shot to another one. A lot of images may be sometimes requiered. Sometime masks are missing, the shot goes back to the rendering departement.

We think having a file format able to isolate any object may smooth this workflow.

Installation

Download the latest binary plug-ins from the Release section

If you use one of the supported Nuke versions, simply extract that version's "DeepOpenEXRId.dll" or "DeepOpenEXRId.so" and the "menu.py" files to your [home_dir]/.nuke folder.

If you use another software, or an unsupported version of Nuke, you can use the OpenFx plugin. Extract the "openexrid.ofx.bundle" folder to a directory of your choice and add an "OFX_PLUGIN_PATH" environment variable pointing to that directory.

Video tutorials

Open in Youtube

Open in Youtube

Architecture

The dynamic image is a standard Deep OpenEXR image containing the coverage information of every object in every pixel.

The renderer writes such openexrid image during the rendering.

The Nuke plug-ins can isolate any object from the deep image flow.

The OpenFX plug-in isolates any object in your prefered compositing tool from an openexrid image.

Compilation

See the BUILDING file

Tests

Compile and run the /test application.

Data


poilus_S155P130.exr
An OpenEXRId frame of the Poilus movie. Thanks to Guillaume AUBERVAL, Léa DOZOUL, Simon GOMEZ, Timothé HEK, Hugo LAGRANGE, Antoine LAROYE and David LASHCARI.


sample_motionblur_transparency.exr
This test file contains motion blur and transparency. This file is in the repository/data folder.

Contributors

Mercenaries Engineering, the guys behind Guerilla Render.

Thanks for feedback, ideas and help

Chase Basich
Alexis Casas
Rachid Chick
Stefan Habel
Philippe Leprince
Philippe Llerena