law
July 26, 2023, 8:34am
1
I suceffully load cube map texture as a sky box but I found it is more darker than original image
I try to add light or postprocessing way but fail to get bright like original texture image
how to solve it?
var skyMaterial = new BABYLON.StandardMaterial("skybox", scene);
skyMaterial.backFaceCulling = false;
skyMaterial.reflectionTexture = new BABYLON.CubeTexture("/cubemap/box", scene);
skyMaterial.reflectionTexture.coordinatesMode = BABYLON.Texture.SKYBOX_MODE;
skyMaterial.diffuseColor = new BABYLON.Color3(1, 1, 1);
skyMaterial.specularColor = new BABYLON.Color3(0, 0, 0);
Welcome aboard!
How is the “original” picture generated? What is the texture/file used for the skybox in that picture?
law
July 27, 2023, 12:10am
3
left is origianal texture file right is what I seeing after rendering
all I did just load the texture follow the above code
Are you able to share the code in the Playground ?
labris
July 27, 2023, 2:15am
5
I believe you can try to set texture.level to the value which suits your needs.
Here is Skybox example from the Docs - https://playground.babylonjs.com/#UU7RQ#1
Here is the same example with texture.level = 2 - https://playground.babylonjs.com/#UU7RQ#3684
2 Likes
law
July 27, 2023, 4:49am
6
Thanks ! it solved to set
reflectionTexture.level = 1.4;
thanks!