texture mapping
I''m trying to texture map walls of a room (just a box shaped) using a brick texture 256x256 but lose the pattern of the bricks as it is stretched- is there a way to preserve the detail?
cheers
Tile the texture (set tex-coords > 1) or if you want to preserve the image as a whole, try altering your AOV via the perspective function.
quote:
Original post by wAVaRiaN
Tile the texture (set tex-coords > 1) or if you want to preserve the image as a whole, try altering your AOV via the perspective function.
I think I need to tile the texture - how do I set the texture coordinate to >1?
November 17, 2001 01:55 PM
quote:
Original post by ogl
I think I need to tile the texture - how do I set the texture coordinate to >1?
Just give a number greater than 1.0 to glTexCoord2f(...). Just make sure sure warp modes are set to GL_REPEAT before applying the texture :
glTexParameteri( GL_TEXTURE_2D, GL_WARP_S, GL_REPEAT);
glTexParameteri( GL_TEXTURE_2D, GL_WARP_T, GL_REPEAT);
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement