PDA

View Full Version : Texture mapping and selecting a part from it



maya
05-15-2002, 12:26 AM
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.

Robbo
05-15-2002, 02:10 AM
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.