Archived

This topic is now archived and is closed to further replies.

Lohrno

Sphere and weird textures...

Recommended Posts

Okay...I feel kinda like a newb asking this question, but, I guess it''s appropriate as I''m still a newb. =D I have a beautiful set of spheres for my sky, except for at the poles of them (they''re gluspheres) it makes like an ugly star of lines you can see. Is there some way of getting rid of these stars? -=Lohrno

Share this post


Link to post
Share on other sites
Are you doing this?


glBegin(GL_QUADS);
gluSphere(pObj, size, quality, quality);
glEnd();


Because that is WRONG. (Believe me, I got stuck on that for longer than I''d like to admit).
It causes the problem you describe.

It should just be like this:


gluSphere(pObj, size, quality, quality);


Outside of a glBegin/glEnd pair, not inside.

Share this post


Link to post
Share on other sites
Ah, OK, I see what you mean now! Well, to me, that looks
like a problem with the texture you''re using. If you made
sure that the top and bottom of the texture image have no
"clouds" and only solid color (probably blue), then you''d
be OK. Remember, gluSphere(...) generates texture coordinates
such that the top and bottom of the texture image converge
to a single point, the "poles".


~~~~
Kami no Itte ga ore ni zettai naru!

Share this post


Link to post
Share on other sites
what you can also do, is translate your image map for the sky up, so the edges will tessilate...you can do it easy in photoshop...just move it up 1/2 the pixels in the texture, it will cause pinching of the texture at the top of the sphere, but it won''t have those gimp lines

duckbob

Share this post


Link to post
Share on other sites