Results 1 to 3 of 3

Thread: Changing Between Meshes and Wires

  1. #1
    Junior Member Newbie
    Join Date
    Jun 2005
    Posts
    13

    Changing Between Meshes and Wires

    I wasn't sure how to entitle this post.

    Essentially, I am programming a viewer for a different 3D meshes.

    I want to be able to change between a mesh mode and a wire mode, and vice versa.

    Changing from a mesh mode to a wire mode works perfectly fine, but for some reason, changing from wire mode back to mesh mode does not.

    This is what the mesh mode looks like, and what it looks like after it goes to wire mode:

    https://netfiles.uiuc.edu/jjcheng2/P1.bmp?uniq=-5dhet8

    https://netfiles.uiuc.edu/jjcheng2/P2.bmp?uniq=-5dhet3

    This is what it looks like when I change it from wire mode to mesh mode:

    https://netfiles.uiuc.edu/jjcheng2/P3.bmp?uniq=-5dhesy

    This is the code:

    The portion above the "draws wire" line draws the mesh, but I need both parts of the code to draw the wires.

    I am not sure what the problem is. Can somebody help me?
    jjcheng

  2. #2
    Senior Member Regular Contributor
    Join Date
    Aug 2003
    Posts
    369

    Re: Changing Between Meshes and Wires

    Hmm from the looks of it, I'd say your drawing in lines mode the third time. There are three modes with which you can draw your model, GL_FILL, GL_POINTS & GL_LINES. Try using glGet to find out for sure.

  3. #3
    Junior Member Newbie
    Join Date
    Jun 2005
    Posts
    13

    Re: Changing Between Meshes and Wires

    thank you! i fixed my problem now.
    jjcheng

Similar Threads

  1. Changing states vs Changing context
    By Yossi Koren in forum OpenGL: Basic Coding
    Replies: 12
    Last Post: 10-08-2017, 01:56 PM
  2. VAO/VBO for meshes
    By Avithohol in forum OpenGL: Basic Coding
    Replies: 13
    Last Post: 08-17-2011, 02:44 AM
  3. How do I do meshes?
    By djbuzzkill in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 01-25-2002, 09:47 PM
  4. Meshes
    By tdavie in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 11-16-2000, 08:44 PM
  5. 2D meshes in 3D
    By Lucretia in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 10-16-2000, 05:54 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean