Babylon js with pixi error this browser does not support WebGL

Hi guys! Help me please! When I turn on the mobile view in the browser, when I try to create the Pixi renderer, provided that before that we created the babylon js renderer, the error “this browser does not support WebGL.”

this.babylonEngine = new BABYLON.Engine(canvas, true);

 this.babylonScene = new BABYLON.Scene(this.babylonEngine);

    const babylonCamera = new BABYLON.FreeCamera("camera", new BABYLON.Vector3(Math.PI, 0, -1), this.babylonScene);

        babylonCamera.setTarget(BABYLON.Vector3.Zero());

    const light = new BABYLON.HemisphericLight("_light", new BABYLON.Vector3(0, 1, 0.1), this.babylonScene);

        light.intensity = 0.7;

        this.renderer = new Renderer({
            width: WIDTH,
            height: HEIGHT,
            view: canvas,
            resolution: 1,
            //antialias: true,
            //transparent: true,

        });
1 Like

Could we have a repro somewhere ? and is the error from babylon or pixi to see where to look ?

1 Like

Sorry, this is my mistake)) experiments)
this.renderer = new Renderer({
width: WIDTH,
height: HEIGHT,
context: this.babylonEngine._gl, // shared context with babylon.js
clearBeforeRender: false,
view: canvas,
resolution: 1,
//antialias: true,
//transparent: true,
autoStart: false
});

1 Like