IBLBaker and .dds specular file

HI there,
consider this PG: https://playground.babylonjs.com/#H09AM2#23

I’m using a specular .dds file produced with IBLBaker from an HDRI file: this one.
As you can see the colors seems to be all in negative.
When i import the HDRI in IBLBaker i can see the correct environment, but when i save it in .dds ad use the specular one, as stated in this guide, i have the result you can see in the PG.

Where do am i mistaking?

Hello @Mercurio , how are you doing?

Thanks for your question! I will take a look at your files to check what is going wrong.

1 Like

I would recommend to rely on .env instead whenever you can for accuracy perf and size: Using An HDR Environment For PBR | Babylon.js Documentation

1 Like

The idea in the end is to use .env produced with sandbox from a .dss file to reduce the file size. But in the beginning i would like to test directly .dds file and go with .env only when i’ve chosen the right HDRI to use. Thank’s :wink:

why not testing .hdr directly instead as this is supported as well ?

1 Like

If i use directly the HDR file it works, the problem seems to occur when i convert it in .dds with IBLBaker.
As stated in the guide, i though that in Sandbox was mandatory to use .dds file, but i’ve discovered that i can load also hdri file and then convert it to .env with success (https://playground.babylonjs.com/#H09AM2#25). So, i think this is the solution. Thank’s!

2 Likes