Skip to content

Patch EXR usage in PolyHaven#32

Merged
kwokcb merged 6 commits intomainfrom
Polyhave_EXR_PNG
Feb 20, 2026
Merged

Patch EXR usage in PolyHaven#32
kwokcb merged 6 commits intomainfrom
Polyhave_EXR_PNG

Conversation

@kwokcb
Copy link
Copy Markdown
Owner

@kwokcb kwokcb commented Feb 20, 2026

Change

There is no robust Javascript/Typescript library for OpenEXR. Tried Bablyon, ThreeJS render to canvas, Hdirify and search for official wrappers. Only one is experimental and very old.

For now support the following:

  1. Use OpenImageIO (Python package) to convert on download.
  2. Try to find the equivalent PNG resource for the EXR one. Seems to work for test cases.
  3. Remap MTLX files to point to PNG files vs EXRs.

This works as a server-side patch and 2. may work for client side.

"Best" can do for now...

Examples

image image image

@kwokcb kwokcb merged commit 96a1dbb into main Feb 20, 2026
@kwokcb kwokcb deleted the Polyhave_EXR_PNG branch February 20, 2026 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant