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 2 of 2

Thread: Texture mapping and selecting a part from it

  1. #1
    Junior Member Newbie
    Join Date
    Apr 2002
    Location
    India
    Posts
    3

    Texture mapping and selecting a part from it

    i would like to know if selecting a part from the texure is possible?..I have created a room and placed tiles by using the function glTexCoord2f()..i have changed the parameters in that to get the necessay number of tiles in the wall.but now i want to replace a particular, row wise and colum wise tiles with other tiles..i thought of filling the room by adding single tiles. but since it is 3 dimensional i'm a little bit confused..kindly explain.
    Thanks in advance.

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Jul 2001
    Posts
    533

    Re: Texture mapping and selecting a part from it

    Hi,

    you have 2 choices. Firstly, tesselate the floor such that the different tiles are actually different quads or (alternatively) render the different textured tiles as decal surfaces over the original floor.

    Thirdly of course, you could paint the texture to take account of the different tiles in the first place.

    Hope this helps.

Posting Permissions

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