PDA

View Full Version : Weird torsion/twisting on my gluSphere



flagrant2
05-20-2015, 10:23 PM
Hi all. This is probably a really noobish question, but I haven't been able to generate a useful search phrase. I'm writing a simple solar system simulator and my gluSpheres have some sort of distortion. Here's what it looks like with and without textures:

18211822

You probably can't tell from the screenshot, but South America is showing up at the same longitude as Saudi Arabia. If your geography isn't so good, it's like somebody gave the whole planet an indian sunburn around the equator. Any suggestions about what could be causing this?

Thanks in advance.

John

Carmine
05-20-2015, 11:39 PM
... it's like somebody gave the whole planet an indian sunburn around the equator. Even without the texture turned on, your sphere is messed up. Looks like depth testing and/or gl_cull_face haven't been enabled or set up properly.

flagrant2
05-21-2015, 02:02 AM
Even without the texture turned on, your sphere is messed up. Looks like depth testing and/or gl_cull_face haven't been enabled or set up properly.

I didn't know face culling had to be activated, but I read up on it and fixed the issue. Thank you so much!