Hi everyone,
Something weird happened with my code… It was working perfectly 2 weeks ago and then I decided to reopen the project and I have this error with textures dimensions and image incomplete… any idea where it could come from?
The two errors:
[.WebGL-0x4c020e4000] GL_INVALID_VALUE: Offset overflows texture dimensions.
THREE.WebGLRenderer: Texture marked for update but image is incomplete
I’m not really good at creating codepen, but I have a live example here: https://relaxed-blackwell-9ca9f5.netlify.app/ ( It’s a build with parcel, the shaders files are minified, but you can find my code in the app.js file)
My mistake, I added the onload callback trying to fix my problem and forget to remove the other one.
Still not working…
Ok I have been doing some digging, it seems there is a problem since the 0.135.0 update. Before this update, everything works perfectly. I found this commit that may explained the problem, but I’m not sure I understand it : WebGLTexture: Basic support for gl.texStorage2D(). #22790
Starting from r135 it’s important that you don’t resize a texture. After the initial use, its dimensions are fixed. I could imagine that you have this kind of problematic logic in your app.