Texture tile

Started by
3 comments, last by darookie 19 years, 6 months ago
I've got a simple mesh with a texture applied to it. When i change the UV coordinates to tile the texture ( vertex.tu *= 10; vertex.tv *= 10 ) the frame rate goes down from 600 fps to 100 fps (depeding on how much i tile the texture) Is this normal or there something wrong in my code ?
Advertisement
Yes, it#s normal if you do it in that particular way. Stay away from UVs out of the [0..1] range.
But if i have to stay away from UVs out of the [0..1] range how can i tile my texture ??
Are you using mip-mapping ?

If not, try using it - this could be an issue with texel cache performance.

Simon O'Connor | Technical Director (Newcastle) Lockwood Publishing | LinkedIn | Personal site

Quote:Original post by ludo8x
But if i have to stay away from UVs out of the [0..1] range how can i tile my texture ??

Well you don't have to. I just thought about S1CAs comment and it seems to be the main reason for the performance drop.
Obviously I was wrong about this because in some cases (e.g. too few vertices) you simply cannot tile without changing the UV range.

My fault, sorry [oh]
Pat.

This topic is closed to new replies.

Advertisement