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 have a 3D sphere rendered using JOGL by means of GLUquadric. I'm trying to add a texture but it is not rendering as correctly.

Does anyone understand why the texture (upper-right of sphere) isnt being wrapped, nor repeated around the rest of the sphere?

Textured Sphere

share|improve this question

1 Answer 1

up vote 3 down vote accepted

Really bad UV coordinates.

If two vertices use the SAME uv coordinate, the final color will be the same between both vertices, because they sample the same texel in the texture.

I suggest you check out the gluQuadricTexture function.

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.