   Beginner terrain texturing question
  Hi,I have a beginner question: how to put textures on a terrain. My first (naive) approach was to tile a "grass texture" across all of my patches like this:for (int y = 0; y < numVertsY; ++y) {for (int x = 0; x < numVertsX; ++x) {...texCoordArray[indexOffset(x, y) * 2 + 0] = (x % PATCH_SIZE) / (float) PATCH_SIZE;texCoordArray[indexOffset(x, y) * 2 + 1] = (y % PATCH_SIZE) / (float) PATCH_SIZE;}}This doesn't work at the borders between patches, for obvious reasons: eg. if PATCH_SIZE is 8 (x%8)/8 will never be 1. Also, it looks jittery and crappy far away because of the minification (if that makes sense), as in the screenshotI found this online: link. Is this a way people do terrain texturing? It seems easy, except for how exactly to blend the detail map.I just wanted to know if there are any de facto easy methods that I just haven't heard of. Thanks!   
  Using tex coords over 1.0 will make the texture repeat:U = x / (float)PATCH_SIZEV = y / (float)PATCH_SIZE;  Oh wow yea, that was a simple fix, thanks Ysaneya. I'd totally forgotten that texture coordinates over 1 were allowed. :-/Quote:Original post by deavikI found this online: link. Is this a way people do terrain texturing? It seems easy, except for how exactly to blend the detail map.I just wanted to know if there are any de facto easy methods that I just haven't heard of. Thanks!If anyone has any input about general terrain texturing methods though, I'd be happy to learn about it. :);  Check Ysaneya's journal ;)   