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
    4

    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
    Senior Member Regular Contributor
    Join Date
    Jul 2001
    Posts
    442

    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.

Similar Threads

  1. How to fit a only a part of a texture?
    By ElFuego in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 05-18-2011, 02:34 AM
  2. Selecting part of an image.
    By bladeGL in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 08-18-2006, 04:35 PM
  3. selecting texture for rotations
    By alark in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 07-07-2003, 01:31 PM
  4. Replies: 1
    Last Post: 06-21-2001, 10:23 PM
  5. Custom projection matrix: part ortho, part frustum
    By joelsk in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 11-30-2000, 07:01 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean