zhy
July 29, 2024, 8:25am
1
let roofMaterial = new StandardMaterial("roofMaterial");
roofMaterial.diffuseTexture = new Texture("src/assets/roof.jpg", scene);
roof.material = roofMaterial;
but the texture of the main body of the house is still there, no problem in the webgl environment
It won t be possible to help without a repro
1 Like
zhy
July 30, 2024, 12:45am
3
Ohhh it looks like jpg are not working in WebGPU, @Evgeni_Popov is it a known limitation ?
Possibly related, webgpu does not support rgb texture format:
I am curious as to why the WebGPU engine does not tolerate TEXTUREFORMAT_RGB. If under the hood , it really needs to follow some RGBA layout , can’t the engine internals handle that conversion?
[ERROR]
PlayGround:
I guess a fix would be to convert to png to get the alpha channel back
It’s a problem with the file itself, see my answer here:
I do see the same thing than @RaananW on my side (Chrome 120.0.6099.218 (Official Build) (64-bit)).
@jackny Are you sure WebGPU is in the list of supported engines in the Playground?
[image]
It already happened to me that after an update, my Chrome did not support WebGPU anymore (until the next update)…
Regarding the black roof, it’s because there’s an error when reading roof.jpg. You can display the error by adding an observer to BABYLON.Texture.OnTextureLoadErrorObservable:
It seems the…
2 Likes