I ran into a problem. In my project users should be able to create their own textures (painting on dynamicTexture). And then upload them to the server. I do this uploading through the base64-string representation of the texture. But after applying and converting back to the texture, something breaks with the texture mapping on the mesh.
I make the playground to show this behavior: https://www.babylonjs-playground.com/#HWGEFQ#2 (It’s hard to see, but after clicking the texture mapping changes. In playground i could not load any more representing image in src attribute, i think because CORS).
Why is this happening? Maybe there is a better solution?
And I tried to turn the context of the canvas, using an additional canvas in memory and transformation, rotation, redrawing … Damn, need to read docs more carefully)