Warning when using a specific dds skybox

https://www.babylonjs-playground.com/#UU7RQ#425

I get 4 times the same warning in the console:

WebGL: INVALID_OPERATION: texParameter: no texture bound to target

but the skybox still displays correctly.

With other dds skyboxes from the playground textures, I don’t have any warnings.

hi i guess
it is timing problem shader request texture before completed loading

What is strange is that simply calling:

CubeTexture.CreateFromPrefilteredData("resources/texture/Clouds.dds", this.scene)

without doing anything else with it (I don’t assign it to a material) is enough to generate the warnings…

pinging @sebavan

@Evgeni_Popov, this is because you are not using a preprocessed cube texture. Preprocessed means it is entitled to be used with pbr and that the mip maps contain pre filtered data as explained in : Use a HDR environment (for PBR) - Babylon.js Documentation

Thanks for the explanation.

However, I’m not using PBR, I created a StandardMaterial for my skybox.

Even by using:

new CubeTexture("resources/texture/Clouds.dds", this.scene)

(not using CreateFromPrefilteredData).

I still get the warnings.

Weird, let me have a look, thanks for the repro.

Here’s the PG by calling new CubeTexture(...):

https://www.babylonjs-playground.com/#UU7RQ#427

Fixed, it will be in the next nightly.

3 Likes

Thanks!