[solved] GL_INVALID_OPERATION when useOIT + createDefaultEnvironment

Hello !

I think we’ve found a bug when using useOrderIndependentTransparency + scene.createDefaultEnvironment together… or at least I don’t think it was on purpose.

image

Repro:

(Open the console to see the warnings)

Just comment out the setupLighting(scene) call or comment out scene.useOrderIndependentTransparency=true (and save+refresh) to see the warnings disappear

Thoughts?

OIT are supported only by the standard and PBR materials. By default, createDefaultEnvironment creates a ground with a BackgroundMaterial, leading to this error.

You should disable the ground creation to get rid of the error:

2 Likes