Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 4 of 4

Thread: texturing floor

  1. #1
    Guest

    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?

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Jun 2000
    Location
    Gastonia, NC, USA
    Posts
    2,070

    Re: texturing floor

    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?

  3. #3

    Re: texturing floor

    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

  4. #4
    Junior Member Newbie
    Join Date
    Nov 2001
    Location
    Bremen
    Posts
    12

    Re: texturing floor

    For textures, go to www.shaderlab.com

    Some urban textures can be found there.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •