XbimWebUI icon indicating copy to clipboard operation
XbimWebUI copied to clipboard

Fixing bug which causes WebGL warning: "RENDER WARNING: Render count or primcount is 0"

Open adamblok opened this issue 6 years ago • 1 comments

I noticed that for some models the library produces WebGL tons of warning:

RENDER WARNING: Render count or primcount is 0

After debugging I discovered that it's related to the transparent rendering mode. I don't know the exact reason of this bug, but it looks like it occurs when we load a model which doesn't have any transparent objects.

Fortunately the fix was quite simple and safe :).

You can get the models that produce this warning below, so you can reproduce it in your environment: models.zip

adamblok avatar Mar 19 '18 10:03 adamblok

This has already been fixed in develop branch.

martin1cerny avatar Mar 19 '18 11:03 martin1cerny