mrdoob / three.js

JavaScript 3D Library.
https://threejs.org/
MIT License
99.63k stars 35.15k forks source link

Why repeating floor planes with RepeatWrapping doesnt work with webGLRenderer? #1068

Closed danieljack closed 12 years ago

danieljack commented 12 years ago

I have tried to repeat a floor texture with basic material using RepeatWrapping and it works fine with CanvasRenderer but it doesnt appear with webGLRenderer. Other basic materials appear with the webGLRenderer but not when i use the RepeatWrapping

alteredq commented 12 years ago

Are your textures power-of-2 sized? Repeat wrapping in WebGL requires it.

danieljack commented 12 years ago

Yes, i cant see it atm but i am pretty sure they are 64x64

alteredq commented 12 years ago

Well, check your code against this example where it works:

https://github.com/mrdoob/three.js/blob/dev/examples/webgl_loader_json_objconverter.html#L102