PDA

View Full Version : noob / texture mapping



not_yet
05-26-2004, 09:26 PM
lets say I have a polygon thats 10 x 10

also I have a texture thats 1 X 1

how do I place that texture where I want it?

assume that I don't want to tile the texture

what I'm reading says the poly coords and the texture coords must match? :confused:

thanks

dorbie
05-26-2004, 10:30 PM
There is no reason for vertex coords and texture coords to match.

You may place your texture anywhere on the larger polygon by using any numbers you like. Without repeats your texture will appear correctly where the numbers for s & t fall between the 0.0 -> 1.0 range. So chose vertex texture coordinates such that after interpolation the 0.0 -> 1.0 numerical ranges for s & t lie where you desire the texture to appear.