Closed vkaytsanov closed 1 month ago
@microsoft-github-policy-service agree
Thanks. I didn't realize OpenEXR stored envmaps directly. Can you point me to an example data file?
Hello, the test I did was using their tool that ships with vcpkg, it is called exrenvmap.exe
. Official documentation: https://openexr.com/en/latest/bin/exrenvmap.html
The attribute envmap
is also documented at https://openexr.com/en/latest/StandardAttributes.html
These are the test files that the tool used and produced skybox.exr
in the archive. Note: I could only open these files with Photoshop to view them:
forest.zip
For texassemble
it makes sense to load an .EXR
with "envmap" as an array of six images and write it as a cube-map or array texture. For texconv
it probably should be treated as a texture array for consistent behavior within the tool.
I'll take this PR and do the code review in a new PR #494
Thanks!
OpenEXR format can includes metadata indicating the image is cubemap which is six images in a single file.