openframeworks / openFrameworks

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

error loading .exr cubemaps #7935

Closed moebiussurfing closed 6 months ago

moebiussurfing commented 6 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 6 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 6 months ago

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

dimitre commented 6 months ago

which platform?

moebiussurfing commented 6 months ago

Windows 11, VS 2022

NickHardeman commented 6 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 6 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 6 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 6 months ago

@moebiussurfing thank you for checking