2
\$\begingroup\$

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

\$\endgroup\$

1 Answer 1

3
\$\begingroup\$

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.

\$\endgroup\$

You must log in to answer this question.

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