PDA

View Full Version : 1:3 Texture (512x2048) Stretches Texels Horizontally...


jocose
08-10-2010, 06:04 PM
This happens in any application that I have tested it in. I can't figure out of its normal or not.

Here is the scenario. I have a 512x2048 texture and a 10m x 30m polygon. I unwrap the polygon and then quantize it so that it fills then entire 0-1 UV space. This means the texture should be perfectly mapped to full texture with NO distortion, yet, when I look closely at the lines I draw on the texture. All the vertical pixels produce texels that are much wider than horizontal texels.

Also as far as I can tell this happens on 1:2 textures as well just to a less extent. Meaning the issue is proportional.

http://img256.imageshack.us/img256/1769/uvquestion.jpg

I thought that it was fine to use power of 2 textures and that you wouldn't have any problems!

Can someone explain what's going on here?

PredatorGSR
08-10-2010, 06:24 PM
10x30 is a 1:3 ratio. 512x2048 is a 1:4 ratio. As a result the texture will be stretched a bit since the ratios don't match. To get better lines, you'd have to waste some texture space by only using 3/4 of the uv space so the ratio is the same.

jocose
08-10-2010, 06:49 PM
This not my day, that was very dumb of me :( Thanks for the hand holding predator, i'll try to think a little harder next time.