EXRExporter

An exporter for EXR.

EXR ( Extended Dynamic Range) is an open format specification for professional-grade image storage format of the motion picture industry. The purpose of format is to accurately and efficiently represent high-dynamic-range scene-linear image data and associated metadata. The library is widely used in host application software where accuracy is critical, such as photorealistic rendering, texture access, image compositing, deep compositing, and DI.

Import

EXRExporter is an add-on, and must be imported explicitly. See Installation / Addons.

import { EXRExporter } from 'three/addons/exporters/EXRExporter.js';

Code Example

// Instantiate a exporter

const exporter = new EXRExporter();

// Parse the input render target data and generate the EXR output

const EXR = exporter.parse( renderer, renderTarget, options );

downloadFile( EXR );

Constructor

EXRExporter()

Creates a new EXRExporter.

Methods

.parse ( renderer : WebGLRenderer, renderTarget : WebGLRenderTarget, options : Object ) : null

renderTarget — WebGLRenderTarget containing data used for exporting EXR image.

options — Export options.

  • type – Output datatype for internal EXR data. Available options:
  • THREE.HalfFloatType // default option
  • THREE.FloatType
  • compression – Internal compression algorithm. Available options:
  • NO_COMPRESSION
  • ZIP_COMPRESSION // default option
  • ZIPS_COMPRESSION

Generates a .exr output from the input render target.

.parse ( dataTexture : DataTexture, options : Object ) : null

dataTexture — DataTexture containing data used for exporting EXR image.

options — Export options (details above).

Generates a .exr output from the input data texture.

Leave a comment

Your email address will not be published. Required fields are marked *