PDA

View Full Version : texturing floor



12-01-2002, 03:26 AM
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?

nexusone
12-01-2002, 05:19 AM
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?

kaysoft
12-01-2002, 07:05 AM
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

Infamous
12-01-2002, 11:29 PM
For textures, go to www.shaderlab.com (http://www.shaderlab.com)

Some urban textures can be found there.