0

If I have a geometry, say

THREE.PlaneGeometry(400,400);

or

THREE.MeshBasicMaterial({map:new THREE.MeshFaceMaterial(materials)});
//multiple textures on only one face

How would I make it so that I have multiple textures on the same side of the plane?

Furthermore, how would I go about setting the coordinates of the texture and position of the texture on the Plane (or face)?

It should look something like this: plane_and_textures

WestLangley
  • 102,557
  • 10
  • 276
  • 276
programmers5
  • 326
  • 2
  • 13
  • `THREE.MeshBasicMaterial({map:new THREE.MeshFaceMaterial(materials)})` : you cannot use a material as a texture (also `MeshFaceMaterial` is now `MultiMaterial`). In r72 this line would be : `THREE.MultiMaterial(materials)`. – Mouloud85 Sep 30 '15 at 07:50
  • when I use THREE.MultiMaterial or THREE.MeshFaceMaterial, I get an error in the console: Uncaught TypeError: Cannot read property 'visible' of undefined three.min.js:496 – programmers5 Sep 30 '15 at 22:20
  • 'visible' is a property of 'material'. 'MultiMaterial' is an array of materials – Mouloud85 Sep 30 '15 at 22:47
  • So, how does that solve that problem? – programmers5 Oct 01 '15 at 01:20
  • I added that comment to your question because you could face another problem if you kept that syntax. mlkn's answer is correct, you can upvote/validate it. – Mouloud85 Oct 01 '15 at 08:19

1 Answers1

2

You can use shader material with textures as uniforms or look other approaches there, there and there.

Community
  • 1
  • 1
Ramil Kudashev
  • 1,166
  • 3
  • 15
  • 19