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

Thread: GlutSolidxxxx displays wireframe objects!?!

  1. #1
    Junior Member Newbie
    Join Date
    Apr 2001
    Posts
    3

    GlutSolidxxxx displays wireframe objects!?!

    No one will believe this one. I am calling GlutSolidxxxx functions but OpenGL is displaying the wireframe versions of the objects. Any idea which OpenGL land mine I stepped on to produce this effect? Has anyone ever seen this happen? Should I take a couple aspirins and go to sleep and hope everything is OK in the morning?

  2. #2
    Intern Contributor
    Join Date
    Jan 2001
    Location
    California
    Posts
    76

    Re: GlutSolidxxxx displays wireframe objects!?!

    that makes no sense.
    glutSolidxxx() displays solid objects.
    glutWirexxx() displays wire objects.
    you probable have something set wrong.
    try glPolygonMode(GL_FRONT,GL_FILL);

  3. #3
    Junior Member Newbie
    Join Date
    Apr 2001
    Posts
    3

    Re: GlutSolidxxxx displays wireframe objects!?!

    I tried your suggestion but no luck. I am sure it's some simple little goof I made that will cost me hours. That's the way it goes. I have some simple programs that display solid objects fine. I'll be sure to post the resolution when I find it. This is crazy!

  4. #4
    Senior Member OpenGL Guru zed's Avatar
    Join Date
    Jul 2000
    Location
    S41.16.25 E173.16.21
    Posts
    2,407

    Re: GlutSolidxxxx displays wireframe objects!?!

    have a look at the source code to glut IIRC /lib/glut u will be able to copy and paste the glutsolid.. code into your app, then u should be able to experiment and find out whats up.
    also like warrior said glPolygonMode( GL_FRONT_AND_BACK, GL_FILL )

  5. #5
    Junior Member Newbie
    Join Date
    Apr 2001
    Posts
    3

    Re: GlutSolidxxxx displays wireframe objects!?!

    Thank you very much to both Warrior and Zed. You were right on the mark. I found that I was calling glPolygonMode(GL_FRONT_AND_BACK, GL_LINE) elsewhere in the program. I needed to call glPolygonMode(GL_FRONT_AND_BACK, GL_FILL) just before calling glSolidxxxx. All I can say now is "sigh....".

  6. #6
    Intern Contributor
    Join Date
    Jan 2001
    Location
    California
    Posts
    76

    Re: GlutSolidxxxx displays wireframe objects!?!

    hehe
    thats the way it goes sometimes.
    good luck with your programs

Posting Permissions

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