繰り返しテクスチャで長い廊下を作成しようとしています。繰り返すテクスチャを追加してオブジェクト(この場合は平面)を直角に回転させて廊下の壁と天井を作成するにはどうすればよいですか?繰り返しテクスチャの例プレーンを作成し、両側にテクスチャを追加し、オブジェクトを横に回転させます。
var texture, material, plane;
texture = THREE.ImageUtils.loadTexture("../img/texture.jpg");
texture.wrapT = THREE.RepeatWrapping; // This doesn't seem to work;
material = new THREE.MeshLambertMaterial({ map : texture });
plane = new THREE.Mesh(new THREE.PlaneGeometry(400, 3500), material);
plane.doubleSided = true;
plane.position.x = 100;
plane.rotation.z = 2; // Not sure what this number represents.
scene.add(plane);
下記の私のソリューションをチェックしてください。 – mattdlockyer