three.js textures distorsion -


i have problem textures presentation (no matter if repeated 1 or whole picture - .png file). can see there bizzare distorsion , wonder if there way preserve it.

enter image description here

    var imgfiles = [];     //imgfiles[0] = "img/versimlin.png";     //imgfiles[1] = "img/versimlin.png";     //imgfiles[2] = "img/horsimrnd.png";     imgfiles[3] = "img/horsimrnd.png";     //imgfiles[4] = "img/versimlin.png";     //imgfiles[5] = "img/versimlin.png";     var viewcubematerials = [];     (var = 1; i<7; i++){         viewcubematerials[i-1] = new three.meshbasicmaterial({             map: three.imageutils.loadtexture(imgfiles[i-1]),             side: three.doubleside         })     }     var viewcubegeometry = new three.cubegeometry( 1680,600,1680,1,1,1 )     var viewcube = new three.mesh(viewcubegeometry, new three.meshfacematerial(viewcubematerials ));       scene.add(viewcube); 

enter image description here

as can see there nothing special within code might question of settings dont know.

if can me grateful.

thanks in advance.


Comments

Popular posts from this blog

jQuery Mobile app not scrolling in Firefox -

c++ - How to add Crypto++ library to Qt project -

php array slice every 2th rule -