November 4, 2021, 9:10am
I’m working on a project where users can upload textures to a server, which get mapped onto objects.
There’s also the option to offset and tile their uploads in various ways.
If a user chooses to use a tiling bigger than 1 (meaning the texture is smaller than the object), the texture should just repeat endlessly (=> adressREPEAT).
This works very well in Chrome:
but in Firefox none of the texture.adressU/adressV options seem to have any effect, its always like this (which resembles texture.adressU/V = 1):
Both browsers are freshly updated, here’s a little project to test it yourselves:
Thanks for your help!
Strange, seems to work on Windows/Firefox for me (v94.0):
November 4, 2021, 9:42am
The stretching of the image looks like a WebGL 1 issue if the texture is not power of two dimensions. Can you run
WebGL Report on firefox please and post the report here?
@yaustar is right, running it on a WebGL 1 context and the issue is there:
November 4, 2021, 9:46am
thanks for the quick responses! here’s the report:
is there any way to enforce WebGL2?
it should be enabled on default if your system supports it … which is a majority of desktops. What are you running on? Is your graphics driver up to date?
in firefox, go to this page: about:config
and search for webgl2
November 4, 2021, 10:17am
seems to be enabled:
im using Win10 Pro (remote).
I also just checked on my local/private machine, it’s working there.
November 4, 2021, 10:26am
Okay, thanks for all your help!
We now know we need to include WebGL2 as system requirement and how to respond if this error should show up again.
You can close this thread
you could also handle it for webgl1 devices by upscaling the image to power of 2 sizes on your server when uploaded