• Advertisement

Archived

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

Sphere and weird textures...

This topic is 5764 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
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 this post


Link to post
Share on other sites
Click here to see what I mean.

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

  • Advertisement