Archived

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

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 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 on other sites
Actually, I didn''t put it inside a Begin End pair. =D

-=Lohrno

Share on other sites
Not sure what you mean by "ugly star of lines"?

gluSphere(Obj, 0.5, 8, 8);

works like a charm, making a sphere with 0.5 radius, 8 slices
and 8 stacks.

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

Share on other sites

I am making a sky sphere here. =D Maybe I need to write my own function? =(

-=Lohrno

[edited by - Lohrno on July 15, 2002 12:28:13 AM]

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 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

• Forum Statistics

• Total Topics
628301
• Total Posts
2981906

• 9
• 11
• 11
• 10
• 10