Back to the Shapespark home page

Size of external texture

Hi,

Trying to customize the texture of a chair in my scene with external textures using this example https://github.com/shapespark/shapespark-viewer-api#replace-textures-using-images-or-videos-from-external-source

Do the textures need to be a square of dimensions in multiple of 2(512512 or 256256)? Can i use a rectangle(600*400)?

Currently getting an error if i don’t use a texture which is a square with dimension in multiple of 2.

If the texture is repeated it must have power-of-two dimensions, however it doesn’t need to be a square. So, both 512x512 and 512x256 will work.

Thank you, that clarifies a lot of things for us.