I spent half a day on this problem and I must confess I’m out of idea right now. Hopefully, you can help me now.
I’m using cmgen/Filament to bake HDR environments, resulting in several files:
- a cubemap (DDS file) without mipmap in full resolution, used to draw the skybox
- a cubemap (DDS file) with 5 levels of mipmaps, smaller resolution (256x256 for level 0), containing the prefiltered specular contribution
- a text file with spherical harmonics for the diffuse contribution
Loading the full resolution without mipmap seems to work fine, with the fix I have submitted yesterday.
However, with my prefiltered specular cubemap, it results in a black screen even if the cubemap appears correctly in Spector.js:
The PG can be found here: https://www.babylonjs-playground.com/#LVAB4K#3