Jump to content

Help! GL error since 3.2.0-alpha8


Recommended Posts

Hi Folks,

I am getting below GL error when calling scene.pick() since 3.2.0-alpha8. I am not able to reproduce it with a simple background.  Would any one of you know what (which commit) might cause this? Everything worked correctly with alpha7.

[.Offscreen-For-WebGL-0C016078]GL ERROR :GL_INVALID_OPERATION : glDrawElements: uniform buffers : buffer or buffer range not large enough at index 0.


And the result is that my CustomRenderTargets in the Scene cannot be rendered any more...

Link to comment
Share on other sites

I tried but I could not reproduce it in a simple playground. But in my code, I am pretty sure that it is when executing scene.pick() that the GL error occurs. 

Would you please give me some debugging instructions so that I can narrow a little bit the cause? In the meantime I will try to see how I can reproduce it...


Link to comment
Share on other sites

This can happen due to many reasons, but I doubt scene.pick is one of them. it might be a callback executed after the scene pick has returned. Try removing callbacks registered and see which one is causing this. The try reproducing this specific function on the playground so we can understand what was changed and if it is a bug.


Link to comment
Share on other sites

Have you tried this:

1. add babylon.max.js as a script to your  HTML:
<script src="https://preview.babylonjs.com/babylon.max.js"></script>

2. add to webpack config:
new webpack.ProvidePlugin({ BABYLON: 'babylonjs', }),
I didn't actually try that, but should work.


edit. or via externals:

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...