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.
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);
as can see there nothing special within code might question of settings dont know.
if can me grateful.
thanks in advance.
Comments
Post a Comment