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


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.

| improve this answer | |

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.