I’m using large sprite sheets in my project. Most of them are 8192x8192 pixels and one is even bigger.
I was getting a strange bug where sometimes the sprites would appear as a black squares instead of the characters the sprite sheet contains. when running an animation the black square will animate as if the image is ok (I can see that cause the borders of the square are moving). after countless tries to re-publish the sprite sheets and run the program again and again with small changes in the way I’m loading the sprite sheets I noticed that I get this error:
WebGL: INVALID_VALUE: texImage2D: bad image data
now I get this error for two of my sprite sheets, and sometimes for only one of them, the related sprite in the project will appear as a black square. I do not get that for other sheets in my project, they are basically the same in size and in configuration but some how they don’t cause this bug.
does any one have an idea how can I go about solving this?