-
texture coordinates
hi,
i was wondering what the texture coordinates will dom what is the relation b/n texture coordinates and geometirc coordinates.....
they are specified using:
glTexCoord2f(0.0f, 0.0f); glVertex3f(-1.0f, -1.0f, 1.0f);
this question may appear silly but i am not able to get clear picture..help me !!!!!
-
Re: texture coordinates
You might want to read it up in the GL-spec if you are that interested.
Here is short version (for triangles):
GL calcualtes the TexCoord of every Fragments Center, out of the TexCoords you specify for each Vertex.
Depending on your Min-and Mag Filter GL calculates a Fragment Color.
In GL spec you should read through sections 3.4.1, 3.5.1, 3.8.5 and 3.8.6
Sorry that I am to lazy to cite out of for chapters of the GL-spec.
Cheers
Chris
-
Re: texture coordinates
hi DaViper,
thanks for the info...i am ready to read the GL-spec..can u give the link/web site where i can read GL-spec....
Thanks
ravi
-
-
Member
Regular Contributor
Re: texture coordinates
Hi,
Here's the valus for the coordinates.
0,0 down left corner
1,0 down right corner
1,1 up right corner
0,1 up left corner
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules