openframeworks / openFrameworks

openFrameworks is a community-developed cross platform toolkit for creative coding in C++.
http://openframeworks.cc
Other
9.84k stars 2.56k forks source link

error loading .exr cubemaps #7935

Closed moebiussurfing closed 2 months ago

moebiussurfing commented 2 months ago

loading cubemaps gives error: [ error ] ofCubeMap :: failed to load image from : "modern_buildings_2_1k.exr" For example on this project, but in others too: https://github.com/openframeworks/openFrameworks/tree/master/examples/gl/materialPBRExample

dimitre commented 2 months ago

Are you working with the latest master? if yes can you please pull latest and try again? Edit: this one is running OK here, macOS with latest

moebiussurfing commented 2 months ago

yes, i am at master branch up to date but doesn´t works

dimitre commented 2 months ago

which platform?

moebiussurfing commented 2 months ago

Windows 11, VS 2022

NickHardeman commented 2 months ago

@moebiussurfing, this may be an issue with FreeImage and EXR. Are you able to load a .hdr image? Polyhaven has some to choose from https://polyhaven.com/hdris

NickHardeman commented 2 months ago

I was able to reproduce the error on Windows 10 and VS 2022. Loading an HDR image works as it should.

moebiussurfing commented 2 months ago

yes, it worked here too. hdr files are loading well. (btw i tried to rename the exr files to hdr but didn´t worked)

NickHardeman commented 2 months ago

@moebiussurfing thank you for checking