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

Thread: Multiple GLUT objects problem

  1. #1
    Junior Member Newbie
    Join Date
    Dec 2015
    Posts
    7

    Multiple GLUT objects problem

    Hello,
    I want to have multiple GLUT objects: 4 glutSolidSphere() and 3 glutSolidCylinder(), but it doesn't look good:

    Image link

    As you can see it doesn't look right. Every one of them are on the same z-coordinate (-10) so it should look like this:

    Image link
    Last edited by Dark Photon; 01-04-2016 at 06:24 AM.

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Jun 2013
    Posts
    2,926
    Ensure that you have a depth buffer and that depth tests are enabled. If you're using a perspective projection, ensure that the near distance isn't too small.

  3. #3
    Junior Member Newbie
    Join Date
    Dec 2015
    Posts
    7
    Yeah, near distance was a bit too small. Thanks!

  4. #4
    Intern Contributor
    Join Date
    Sep 2014
    Posts
    53
    What are the latest news about you question? Did you decide it?

Posting Permissions

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