Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

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?

share|improve this question
1  
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. –  DaleyPaley May 28 '13 at 23:46

1 Answer 1

up vote 0 down vote accepted

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!

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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