0

I have a question about texture mapping and repeat with THREE.js. In my scene there are several thousands of cubes with different height. All shall have the same material with a texture which shall be repeated depending on the height of the object. Since repeat.y isn't the same for each object, I'm afraid I cannot use the same material for all cubes although the texture is the same. Is that right? Or is there a way to use the same material and update the repeat value automatically? Thank you very much in advance.

Haruoka
  • 61
  • 4
  • Take a look at http://stackoverflow.com/questions/17530350/fixed-texture-size-in-three-js/17551618 – yaku Dec 02 '13 at 17:15
  • Thank you very much for the fast reply. Unfortunately I didn't see that before. I'll try your approach with the UV coordinates first :-) – Haruoka Dec 02 '13 at 23:59
  • It worked out! Just if you want, you could write a short answer so that I can accept it. Anyway thank you very much! – Haruoka Dec 04 '13 at 00:23

0 Answers0