
How to Texture Triangles
im usin glTexCoord2f to texture triangles, what coordinates do i need to put in them?? The texure comes out all liney on my models. do i need to use a different function? what values do i use for the paramaters. Please answer back, thanks

March 16, 2002 09:48 PM
Hi...
has been long ago i used this...
Texturecoorinates
+ = Texturecorners
0.0/0.0 0.0/1.0
+-----------+
| |
| |
| Texture |
| |
| |
+-----------+
1.0/0.0 1.0/1.0
are this the proper coordinates ?
this order may flip/rotate the origin texture a bit
(you will find it out)
------------------------------------
For Example...
Texturecoordinates aligned to a triangle:
* are the vertices (points) of the triangle...
0.0/0.5
+-----*-----+
| / \ |
|Tex/ \tur|
| / \ |
| / Tri- \ |
|/ angle \|
*-----------*
1.0/0.0 1.0/1.0
------
bye...
has been long ago i used this...
Texturecoorinates
+ = Texturecorners
0.0/0.0 0.0/1.0
+-----------+
| |
| |
| Texture |
| |
| |
+-----------+
1.0/0.0 1.0/1.0
are this the proper coordinates ?
this order may flip/rotate the origin texture a bit
(you will find it out)
------------------------------------
For Example...
Texturecoordinates aligned to a triangle:
* are the vertices (points) of the triangle...
0.0/0.5
+-----*-----+
| / \ |
|Tex/ \tur|
| / \ |
| / Tri- \ |
|/ angle \|
*-----------*
1.0/0.0 1.0/1.0
------
bye...
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement