Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: Weird torsion/twisting on my gluSphere

  1. #1
    Junior Member Newbie
    Join Date
    May 2015
    Posts
    12

    Weird torsion/twisting on my gluSphere

    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:

    Click image for larger version. 

Name:	withouttextures.jpg 
Views:	109 
Size:	4.5 KB 
ID:	1821Click image for larger version. 

Name:	withtextures.jpg 
Views:	102 
Size:	6.0 KB 
ID:	1822

    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

  2. #2
    Member Regular Contributor
    Join Date
    Apr 2012
    Location
    Los Angeles
    Posts
    388
    ... 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.

  3. #3
    Junior Member Newbie
    Join Date
    May 2015
    Posts
    12
    Quote Originally Posted by Carmine View Post
    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!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •