Rectangular Image size not supported in Blend4Web

18 October 2016 09:14 #12807
I found that Blend4Web expects images to be square (preferably power of 2). In real scenario this is not possible say our device is of size 1280X800 then I have to make image for background of size 1280X1280 and same for other images, which will increase assets size and thus GPU load at run time.

Kindly suggest whether in future Blend4Web will support rectangular images.

with regards
Raja W. Husain
18 October 2016 18:14 #12818

Blend4Web supports textures of arbitrary sizes as non-power-of-two textures are automatically re-scaled upon loading. So everything should work.
Development Lead | Twitter
19 October 2016 15:52 #12842
Kindly check the attached zip packet for sample demo. I am trying to create a scene with orthographic camera with size 1280X800. I have used images of same size and found that when I render the scene image gets distorted.

FYI: I have applied scaling factor 8:5:1 to the plane (textured with background image) to make it fit to the screen size 1280X800.

After exporting .json file, you can run demo by
1) double click runServer.bat
2) double click run.html

with regards
Raja W. Husain
19 October 2016 16:22 #12843
Hmm, try to apply scales to all objects. Will it help?

Select all -> ctrl+a -> scale
3D Generalist, contests administrator,
Blend4Web team.
art blog:
19 October 2016 16:28 #12844
Nop, It doesn't help.
20 October 2016 11:01 #12867
hi, applying scale works for me
you can see in the browser console which objects should be changed:

P.S. applying scale on the EMPTY object changes uniform scales on both the other two objects again - this is a bit confusing
Blend4Web Team
Please register or log in to leave a reply.