texturing floor

i want texture the floor, but how can i do this to minimize computing in my card or processor? should i texture ie. 50 polygons on XZ axis?
ps. do you know any www where it’s possible to find good pictures to texture (for example floor, bot also walls etc.?) different object?

A google search will provide you with the www sites you want.

Originally posted by insane_in@yahoo.com:
i want texture the floor, but how can i do this to minimize computing in my card or processor? should i texture ie. 50 polygons on XZ axis?
ps. do you know any www where it’s possible to find good pictures to texture (for example floor, bot also walls etc.?) different object?

To make a decent looking floor, you should tile the texture along U and V, so you should either scale the texture matrix, or use a higher value in glTexCoord2i. 1 will stretch it, other value higher than 1 will tile it.

Also, you should set:
glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_WRAP_S, GL_REPEAT);
glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_WRAP_T, GL_REPEAT);

I hope this helps. Cya

For textures, go to www.shaderlab.com

Some urban textures can be found there.