2
\$\begingroup\$

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?

\$\endgroup\$
1
  • 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, 2013 at 23:46

1 Answer 1

0
\$\begingroup\$

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!

\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .