I'm using this algorithm to find texture coordinates on a sphere: Wikipedia UV Coordinates

I get the famous seam due to the wrong interpolation, but I also get odd distortions on certain points on the sphere. A picture follows where you can see like five starshaped distortions.

enter image description here

What could cause this?

  • 1
    \$\begingroup\$ Depending on how your UVs are calculated, if your UV coordinate goes beyond the range of [0 1], then maybe there is a modulo so a value of 1.01 becomes 0.01. Then from one polygon to the next you have the whole texture scrunched up and backwards along one, or both, axes. \$\endgroup\$
    – DaleyPaley
    May 28 '13 at 23:46

Took me some time, but I finally found the problem. In the wiki entry is written that the unit vector is needed. I basically forgot to normalize the vector before the calculation!


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.