Advertisement

How to Texture Triangles

Started by March 14, 2002 10:55 PM
0 comments, last by cb007sax 22 years, 11 months ago
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
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...

















This topic is closed to new replies.

Advertisement