Texture coors?
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 =/\=
Richard =/=
0,0 Down left
1,0 Down right
1,1 Top right
0,1 Top left
========================
Leyder Dylan
http://ibelgique.ifrance.com/Slug-Production/
1,0 Down right
1,1 Top right
0,1 Top left
========================
Leyder Dylan
http://ibelgique.ifrance.com/Slug-Production/
========================Leyder Dylan (dylan.leyder@slug-production.be.tf http://users.skynet.be/fa550206/Slug-Production/Index.htm/
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
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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement