-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
OpenEXR loads as full white image instead of its content. Is it supported ATM? #10
Comments
I have no experience with OpenEXR image. I suppose that since it is HDR image, its pixel value doesn't fit in the range [0, 1] which is used by If that's the case, I can add support for Can you post a sample EXR image and a JPEG/PNG counterpart of what it should look like? |
Yes absolutely. Most of the time, EXR contains 16 or 32 bit data (often imported as From what I experienced using the API I assumed that the data read would fallback to pure white float4(1.0,1.0,1.0,1.0) so it doesn´t break the import. I have put my eyes in the code but I couldn't really understand how FreeImage works :/ If you can have a look to make it import properly it would really be awesome! <3 Regarding the sample data, I publshed some years ago a bunch of flipbooks containing data both in TGA and EXR that you can use as example : https://blog.unity.com/technology/free-vfx-image-sequences-flipbooks Also, there are many full linear HDR EXR available at https://polyhaven.com/hdris under CC0 license |
@peeweek I added support for EXR image in the latest release. Let me know if you have any issue with loading EXR image. |
Wow thanks ! It did work with my textures :) . I had also a bunch of textures from https://github.com/AcademySoftwareFoundation/openexr-images but some of them did not load correctly. I am giving you the callstack but it seems it breaks from a burst job. I am not sure whether these images are standard or contain quite Advanced EXR features that are borderline to be supported. I will do some exception handling for these images.
|
Can you try turning off Burst and see if it still works? Also, send me the image that results in this error as well. |
Please post me the EXR image, so I can test it out myself. |
Sure, here it is. If you want EXR test images you can grab more from here : https://github.com/AcademySoftwareFoundation/openexr-images/tree/master/TestImages (this image originates from this repo) |
I am a bit confused about how to load OpenEXR Images or if it is supported. Currently I used either
LoadImage
orCreateFromImage
either with automatic loader settings or specific, but the returned data is all white.Texture size seem correct.
Also, I'm wondering about reading these values as RGBAFloat or RGBAHalf. Is it supported?
The text was updated successfully, but these errors were encountered: