Forum

convert resources get me (Image size must be a multiple of 4)

10 March 2016 13:05
When use convert resources get this messages:

[INCOMPATIBLE IMAGE] Image size must be a multiple of 4:
/path/blabla/texture.png
[INCOMPATIBLE IMAGE] Image size must be a multiple of 4:
/path/blabla/texture.png
[INCOMPATIBLE IMAGE] Image size must be a multiple of 4:
/path/blabla/texture.png
Processing directory: deploy/assets/test
Resizing textures
Compressing textures
Converting media files
Resources Converted


And chrome continues to show:
B4W LOG: LOAD IMAGE 5184x3456
B4W LOG: LOAD IMAGE 2818x3232
B4W LOG: LOAD IMAGE 4692x2255

¿Can help me?. Thanks.
10 March 2016 16:56
I have writed an script for resize all images in python and work for me:
https://github.com/zebus3d/Blend4web_utils/blob/master/clamp_maxsizes_textures.py
14 March 2016 10:59
[INCOMPATIBLE IMAGE] Image size must be a multiple of 4:
/path/blabla/texture.png

Hi. This error appears during the dds-conversion. They're are also used for optimization purpose.
It needs to set some appropriate flags during the app initialization to use converted (dds or resized) resources. Please, look at the documentation, here:
https://www.blend4web.com/doc/en/developers.html#id22 ("for images (convert_dds)" section).



 
Please register or log in to leave a reply.