Members - Reputation: 138
Posted 20 July 2001 - 04:11 AM
Senior Staff - Reputation: 1652
Posted 20 July 2001 - 06:29 AM
To spread the texture over a bunch of poly's, you need to calculate the texture coordinates for each vertex that is being texture mapped. When applying 1 texture per quad, the values range from 0.0 to 1.0, right? Well, when applying 1 texture to 10 quads, the texture coordinates for each quad will range from n/10 to (n+1)/10, where n is the index value for the current grid vertex.
Just take a look at the flag demo. It explains things better than I can at the moment.