http://www.cuteandcuddlypet.com.au/moogie/textureproblem.png
Woe is me 
I have been battling with implementing textures on to spheres but have hit problem in my implementation. There seems to be a ring on the sphere which is not part of the texture.
Originally I assumed that it is due the discontinuity of the arctan function which causes this artifact when texturing. however many hours later it was suggested that it could be an artifact of interpolation of the texture co-ordinates of the corners of a quad where texure wraps around to the start again.
This seems to have been the problem as soon as i removed interpolation the seam disappears.
I need to some how modify the texture coordinates of each corner such that they are in the same range.
How does one do that? I have code which can detect the edge of the texture and i have thought about adding 1.0 to the offending texture coordinate(s) however this can potentially lead to other corners now being out of the valid interoplation range…