Hilfe durchsuchen

Vorsicht vor Support-Betrug: Wir fordern Sie niemals auf, eine Nummer anzurufen, sie per SMS zu kontaktieren oder persönliche Daten preiszugeben. Bitte melden Sie verdächtige Aktivitäten über die Funktion „Missbrauch melden“.

Learn More

BABYLON.PhotoDome causes WebGL warning: uniformBlockBinding, using macOS Firefox

more options

I use BabylonJS and WebXS. As soon as I call BABYLON.PhotoDome,I get a WebGL warning: uniformBlockBinding: blockIndex (4294967295) must be less than ACTIVE_UNIFORM_BLOCKS (2). engine.uniformBuffer.ts:140:13 The odd value 4294967295 is 0xFFFFFFFF or -1 It is retuned by this._gl.getUniformBlockIndex(program, blockName);

You may reproduce it in https://www.babylonjs-playground.com/#1NB0Z9#0 1 with macOS Firefox Developer Edition 78.0b1 (64Bit) Chrome is ok: Version 83.0.4103.97 (Official Build) (64-bit) And the BabylonJS Team wrote back: I don’t have this error with firefox 76.0.1 on Windows

Alle Antworten (2)

more options

WebGL graphics glitch in native OpenGL mode in Sponza by Babylon.js demo. Summary ... AFAIK there's no reason to not enable it, besides backwards compat.

1. Set prefs

webgl.disable-angle;true webgl.bypass-shader-validation;true

2. Visit http://www.babylonjs.com/demos/SponzaDynamicShadows/


Rendering is almost correct, but there are 1px wide glitch bright lines in the rendered shadows, which are not present when the above prefs are not set.

To illustrate, see the following screenshots:

- two 1px vertical stripes in the middle of the screen: https://dl.dropboxusercontent.com/u/40949268/Bugs/sponza_native_gl_1px_line_glitch_1.png

- one 1px horizontal stripe at the far end of the screen: https://dl.dropboxusercontent.com/u/40949268/Bugs/sponza_native_gl_1px_line_glitch_2.png

- a 1px diagonal stripe joining to a 1px horizontal and a vertical line at a corner: https://dl.dropboxusercontent.com/u/40949268/Bugs/sponza_native_gl_1px_line_glitch_3.png

Assuming the sample is rendering shadow maps to the faces of a cube map, this could be something related to the OpenGL seamless cube map sampling options https://www.opengl.org/registry/specs/ARB/seamless_cube_map.txt that are different in ANGLE and OpenGL modes.

Note: Marking this bug as minor for now, since it is not on the default current GL execution path due to the prefs. Jeff mentioned that reporting these would still be interesting since a potential future plan might be to run on native GL skipping ANGLE GL->D3D on Windows, where drivers would permit.


more options

Thank you for your fast and extended response. I am an amateuer to webGL :-/ Is Sponza part of Firefox or should the change made in Babylon? What change by the way?

webgl.bypass-shader-validation does not exist in the actual Firefox; I created it. Chaning the webgl.* prefs did not stop the warning.

The screenshots are 404.


Stellen Sie eine Frage

Sie müssen sich mit Ihrem Benutzerkonto anmelden, um auf Beiträge zu antworten. Bitte stellen Sie eine neue Frage, wenn Sie noch kein Benutzerkonto haben.