Material glossiness in BABYLON 4.0.0

Hi,

I have updated BabylonJS version from 3.2.0 alpha8 to 4.0.0.rc1 and I seen rendering differences for some materials.
For materials with environmentTexture, materials are more glossy with 4.0.0 version.
I give you an code sample for my material :

var material = new BABYLON.PBRSpecularGlossinessMaterial(“mat1”, scene);
material.alpha = 1;
material.glossiness = 0.51;
material.diffuseColor = new BABYLON.Color3(0 0, 0);
material.emissiveColor = new BABYLON.Color3(0, 0, 0);
material.specularColor = new BABYLON.Color(0.93, 0.93, 0.57);
material.environmentTexture = environmentProbe.cubeTexture;

I build environmentProb with this code

this.environmentProbe = new BABYLON.ReflectionProbe(“EnvironmentProbe”, 512, this.scene, true);
this.environmentProbe.position = new BABYLON.Vector3(0, 1.5, 0);
this.environmentProbe.refreshRate = 0;
this.environmentProbe.cubeTexture.sphericalPolynomial = new BABYLON.SphericalPolynomial();

I give you an exemple with a gold reindeer.
Do you have the same effects with 4.0.0 version ? Have you some ideas to fix it ?
Thanks.

10a40faa11e8158a0e8141fbccc48bfc

Welcome to the forums!

Do you mind creating a playground? That will help with identifying the issue.

Hi Thanks,

I found this article about PBRSpecularGlossinessMaterial when migrating from 3.2 to 3.3 :

I just change environment probe settings like this

probe.cubeTexture.lodGenerationOffset = 0;
probe.cubeTexture.lodGenerationScale = 0.8;

and now it works fine.

2 Likes