Chrome texture 2 power warning

Page: http://nps.netarteria.pl/gallery/ I follow this guide: https://developer.mozilla.org/en-US/docs/WebGL/Animating_textures_in_WebGL , but my chrome (in test mode) shows this warning : 58RENDER WARNING: texture bound to texture unit 0 is not renderable. It maybe non-power-of-2 and have incompatible texture filtering or is not 'texture complete' 58RENDER WARNING: texture bound to texture unit 0 is not renderable. It maybe non-power-of-2 and have incompatible texture filtering or is not 'texture complete' . But I am using the correct filtering (non-mipmap), so I'm not sure what happened. Also pay attention to the bottom row of pixels in both videos - it has been stretched, I'm not sure if this is due.

+7
source share
3 answers

I had the same problem with the video texture. What you need to do is to avoid using mipmaps when the texture is not power 2, which are enabled by default:

 _tmpTex.generateMipmaps = false; _tmpTex.minFilter = THREE.LinearFilter; _tmpTex.magFilter = THREE.LinearFilter; 
+6
source

If you texture is not a power of the 2nd size, do not use (or disable) mippmapping using this minifier texture method.

+1
source

Putting gman's comment in response (it worked for me):

Make sure you load the image and call `texImage2D 'before you render the image.

0
source

All Articles