Warning from threejs - "image is not power of two"

This warning is only logged when using WebGL1 since you need power-of-two (POT) textures for mipmapping. There are a few options to avoid this message. You can disable mipmapping by:

  • Set Texture.minFilter to THREE.LinearFilter
  • Set Texture.generateMipmaps to false

You can also use a WebGL 2 rendering context. Or you just ensure your image is POT.

2 Likes