Advertisement

Texture Coords...

Started by July 13, 2002 04:21 AM
0 comments, last by Aram 22 years, 5 months ago
Hello!! I have a small question about texture coordinates. Lets say you have a square made of 100 triangles. How would I set the texture coordinates for those triangles?
True words are not always beautiful, beautiful words are not always truthful.
something like (pseudo-code) this?

for (int iLoop1 = 0; iLoop1 < iNumVertices; iNumVertices++){    SetTextureCoord(iVertices[iLoop1].iX / 10.0,                    iVertices[iLoop1].iY / 10.0);    SetVertexCoord(iVertices[iLoop1].iX,                   iVertices[iLoop1].iY);} 


---
shurcool
wwdev

This topic is closed to new replies.

Advertisement