I have product configurator where user can upload their custom logo and apply it on the product.
It is working on windows and android mobiles too.But not working on mac safari browser.
Later on I checked that the png image was not power of 2.
So I converted the image to power of 2 and now its working but I cannot ask every user to convert their logo to power of 2 and then upload it.
Can some one help me why non power of 2 textures are not working?
Here is the link to the configurator if any one want to test it.
You will need to click on logo and then upload a png.
Thanks
So Safari is still supporting only WebGL 1.0 which comes with a number of restrictions. One of them is that non power of 2 textures are only partially supported: only for textures that have mipmaps disabled as far as I know.
Found a sample of a non PO2 texture with no mipmaps which seems to be working fine on Safari.
So try disabling mipmaps and also make sure to set clamping to edge on your uploaded texture first:
Hi Leonidas, sorry for the delayed response.
I did what what yaustar suggested. To resize the image in JS before creating the texture.
Now its working fine.
Thanks you all for your support !