Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EXRExporter: introduces EXR exporter, initial draft. #19764

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 77 additions & 0 deletions docs/examples/en/exporters/EXRExporter.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<base href="../../../" />
<script src="list.js"></script>
<script src="page.js"></script>
<link type="text/css" rel="stylesheet" href="page.css" />
</head>
<body>
<h1>[name]</h1>

<p class="desc">
An exporter for *EXR*.
<br /><br />
<a href="https://www.openexr.com/">EXR</a> ( Extended Dynamic Range) is an
<a href="https://github.com/AcademySoftwareFoundation/openexr">open format specification</a>
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.
</p>

<h2>Code Example</h2>

<code>
// 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 );
if ( EXR !== undefined ) downloadFile( EXR );
</code>

<h2>Constructor</h2>

<h3>[name]()</h3>
<p>
</p>
<p>
Creates a new [name].
</p>

<h2>Methods</h2>

<h3>[method:null parse]( [param:WebGLRenderer renderer], [param:WebGLRenderTarget renderTarget], [param:Object options] )</h3>
<p>
[page:Function renderTarget] — WebGLRenderTarget containing data used for exporting EXR image.<br />
[page:Options options] — Export options.<br />
<ul>
<li>type - Output datatype for internal EXR data. Available options:<br />
<code>
THREE.HalfFloatType // default option
THREE.FloatType
</code>
</li>
<li>compression - Internal compression algorithm. Available options:<br />
<code>
EXRExporter.NO_COMPRESSION
EXRExporter.ZIP_COMPRESSION // default option
EXRExporter.ZIPS_COMPRESSION
</code>
</li>
</ul>
</p>
<p>
Generates a .exr output from the input render target.
</p>

<h2>Source</h2>

<p>
[link:https://github.com/mrdoob/three.js/blob/master/examples/jsm/exporters/EXRExporter.js examples/jsm/exporters/EXRExporter.js]
</p>
</body>
</html>
77 changes: 77 additions & 0 deletions docs/examples/zh/exporters/EXRExporter.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<base href="../../../" />
<script src="list.js"></script>
<script src="page.js"></script>
<link type="text/css" rel="stylesheet" href="page.css" />
</head>
<body>
<h1>[name]</h1>

<p class="desc">
An exporter for *EXR*.
<br /><br />
<a href="https://www.openexr.com/">EXR</a> ( Extended Dynamic Range) is an
<a href="https://github.com/AcademySoftwareFoundation/openexr">open format specification</a>
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.
</p>

<h2>Code Example</h2>

<code>
// 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 );
if ( EXR !== undefined ) downloadFile( EXR );
</code>

<h2>Constructor</h2>

<h3>[name]()</h3>
<p>
</p>
<p>
Creates a new [name].
</p>

<h2>Methods</h2>

<h3>[method:null parse]( [param:WebGLRenderer renderer], [param:WebGLRenderTarget renderTarget], [param:Object options] )</h3>
<p>
[page:Function renderTarget] — WebGLRenderTarget containing data used for exporting EXR image.<br />
[page:Options options] — Export options.<br />
<ul>
<li>type - Output datatype for internal EXR data. Available options:<br />
<code>
THREE.HalfFloatType // default option
THREE.FloatType
</code>
</li>
<li>compression - Internal compression algorithm. Available options:<br />
<code>
EXRExporter.NO_COMPRESSION
EXRExporter.ZIP_COMPRESSION // default option
EXRExporter.ZIPS_COMPRESSION
</code>
</li>
</ul>
</p>
<p>
Generates a .exr output from the input render target.
</p>

<h2>Source</h2>

<p>
[link:https://github.com/mrdoob/three.js/blob/master/examples/jsm/exporters/EXRExporter.js examples/jsm/exporters/EXRExporter.js]
</p>
</body>
</html>
6 changes: 4 additions & 2 deletions docs/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -412,9 +412,10 @@ var list = {
},

"Exporters": {
"ColladaExporter": "examples/en/exporters/ColladaExporter",
"EXRExporter": "examples/en/exporters/EXRExporter",
"GLTFExporter": "examples/en/exporters/GLTFExporter",
"PLYExporter": "examples/en/exporters/PLYExporter",
"ColladaExporter": "examples/en/exporters/ColladaExporter"
},

"Math": {
Expand Down Expand Up @@ -872,9 +873,10 @@ var list = {
},

"导出器": {
"ColladaExporter": "examples/zh/exporters/ColladaExporter",
"EXRExporter": "examples/zh/exporters/EXRExporter",
"GLTFExporter": "examples/zh/exporters/GLTFExporter",
"PLYExporter": "examples/zh/exporters/PLYExporter",
"ColladaExporter": "examples/zh/exporters/ColladaExporter"
},

"数学库": {
Expand Down
Loading