Jump to content
  • Advertisement

Archived

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

RichGould77

Texture coors?

This topic is 6105 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!