Sign in to follow this  
proanim

seamless tiling of UV's

Recommended Posts

proanim    455

Can someone explain what is 'the most optimal' way of tiling uv coordinates on a model?

 

I wan't this to be reliable enough to not produce seams or artifacts of any kind since all my models will use diffuse/normal/specular maps. I do know UDK and id tech has this in more complicated/advanced way, and I think that it might be overkill for me to do it that way.

 

So I was thinking of simply tiling uv's every time when object is scaled, for example 2x, 3x, 4x, etc. UV's would be tiled for number of times object was scaled compared to it's original size.

Share this post


Link to post
Share on other sites
Krohm    5031

I always built uvs by just using a thing like that:

(u,v) = f(x, y, z)

Yes, pure function. It will work under the following assumptions:

  1. Your vertex values are unique (shared vertices collapsed);
  2. No "spurious" vertices;
  3. Texture actually tiling.

So, if you have "seams or artifacts" I'm inclined to believe at least one of the preceding requirements are not met.

It would be nice to know what those "seams or artifacts" look like as a  start!

I think the most common problem is missing (1). This will cause small floating point inaccuracies at best and just different results in other cases. Are you 100% sure the input dataset is correct?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this