Archived

This topic is now archived and is closed to further replies.

RichGould77

Texture coors?

Recommended Posts

Is it possible to only a quarter of a texture onto a quad? If it is, I would appreciate the correct values I need so I can get all four quarters, if I remember correctly: glTexCoord2f(0,0), glTexCoord2f(0.5, 0), glTexCoord2f(0.5, 0.5), glTexCoord2f(0, 0.5) we there four texture coordinate calls I made to get the bottom left quarter and: glTexCoord2f(0.5, 0.5), glTexCoord2f(1, 0.5), glTexCoord2f(1, 1), glTexCoord2f(0.5, 1) got me the top right hand corner, but it would seem no matter what other values I put in, I always get the same two images. Any idea how I get the other two quarters? Richard =/\=

Share this post


Link to post
Share on other sites
Upper-Left:
0.0f, 0.0f
0.5f, 0.0f
0.5f, 0.5f
0.0f, 0.5f

Upper-Right:
0.5f, 0.0f
1.0f, 0.0f
1.0f, 0.5f
0.5f, 0.5f

Lower-Right:
0.5f, 0.5f
1.0f, 0.5f
1.0f, 1.0f
0.5f, 1.0f

Lower-Left:
0.0f, 0.5f
0.5f, 0.5f
0.5f, 1.0f
0.0f, 1.0f

I hope this helps.... (better)

Edited by - Crash_Kid on November 4, 2001 7:00:37 AM

Share this post


Link to post
Share on other sites