Skip to content

Commit e388ed0

Browse files
authored
Changing exr to hdr files for compatability with windows (#7964)
#changelog #gl
1 parent e9d562f commit e388ed0

9 files changed

Lines changed: 6 additions & 4 deletions

File tree

Binary file not shown.
Binary file not shown.

examples/3d/ofxAssimpExample/src/ofApp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ void ofApp::setup(){
6262
wallMaterial.setDisplacementStrength( 2.0 );
6363

6464
// https://polyhaven.com/a/abandoned_construction
65-
cubeMap.load("abandoned_construction_2k.exr", 512);
65+
cubeMap.load("abandoned_construction_2k.hdr", 512);
6666
}
6767

6868
//--------------------------------------------------------------
Binary file not shown.
Binary file not shown.

examples/gl/materialPBRAdvancedExample/src/ofApp.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ void ofApp::setup(){
3636

3737
// try commenting this out to see the effect that cube maps have on lighting
3838
// https://polyhaven.com/a/kloppenheim_06_puresky
39-
cubeMap.load( "kloppenheim_06_puresky_1k.exr", 512 );
39+
// Windows is not loading .exr files at the moment, so lets do hdr instead
40+
cubeMap.load( "kloppenheim_06_puresky_1k.hdr", 512 );
4041

4142
matPlywood.setPBR(true);
4243
matPlywood.loadTexture(OF_MATERIAL_TEXTURE_DIFFUSE, "plywood/plywood_diff_2k.jpg" );
Binary file not shown.
Binary file not shown.

examples/gl/materialPBRExample/src/ofApp.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@ void ofApp::setup(){
1111

1212
// loading a cube map will enable image based lighting on PBR materials.
1313
// cube map will create a prefiltered light cube map and an irradiance cube map
14-
// cube map texture from https://polyhaven.com
14+
// cube map texture from https://polyhaven.com : https://polyhaven.com/a/modern_buildings_2
15+
// EXRs are not loading on Windows, so lets use a hdr
1516
#ifdef USE_CUBE_MAP
1617
// comment out the loading of the cube map image to see added cube map lighting without image
1718
// fake environment lighting is added in the pbr shader
1819

1920
ofCubeMap::ofCubeMapSettings csettings;
20-
csettings.filePath = "modern_buildings_2_1k.exr";
21+
csettings.filePath = "modern_buildings_2_1k.hdr";
2122
// uncomment to load from a cache or make one if it doesn't exist
2223
// csettings.useCache = true;
2324

0 commit comments

Comments
 (0)