Sign in to follow this  

Blending problem with spheres

Recommended Posts

I've got a problem with my first simple solar system program. I made an Earth using gluSphere(quadratic,0.2f,32,32); and an atmosphere using gluSphere(quadratic,0.22f,32,32); The atmosphere is blended with glBlendFunc(GL_SRC_ALPHA,GL_ONE); The Earth and atmosphere are at the same position. It looks like this: The clouds are not blended correctly. Without the Earth you can see what I mean: With glDisable(GL_DEPTH_TEST); I don't get the right effect: And with glDepthMask(GL_FALSE); I get another strange effect: Did I something wrong or used the wrong method? How can I make an Earth with atmosphere without strange black lines? Thanks for your help! (Sorry for my bad English) [Edited by - Robbbert on November 8, 2004 12:15:59 PM]

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this