Results 1 to 2 of 2

Thread: Polygon Stipple

  1. #1
    Junior Member Newbie
    Join Date
    Apr 2003
    Posts
    7

    Polygon Stipple

    Is there any way to draw the front face of a polygon solid and the back face stippled? Or to draw the front face one color and the back face a different color? I don't want to draw the front face filled and the back face with just lines because it might make it look like I have missing elements in my mesh. I just want a good way to visually identify if an element is facing the wrong direction in my model.

  2. #2
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    Kristianstad,Skåne,Sweden
    Posts
    1,595

    Re: Polygon Stipple

    Hi !

    You can use:
    glMaterialfv( GL_FRONT, ...); and
    glMaterialfv( GL_BACK, ...);

    To have different materials on front and back facing triangles.

    Mikael


    [This message has been edited by mikael_aronsson (edited 10-25-2003).]

Similar Threads

  1. Polygon Stipple Patterns
    By OpenGLNoob in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 03-26-2012, 09:56 PM
  2. Stipple & Fog
    By Sagaceil in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 02-02-2011, 03:24 PM
  3. Technical reason why polygon stipple is slow on ATI?
    By Joseph19 in forum OpenGL: Basic Coding
    Replies: 7
    Last Post: 09-05-2004, 12:38 AM
  4. Polygon Stipple
    By atubular in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 12-30-2002, 10:52 AM
  5. about polygon stipple pattern
    By release in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 11-18-2002, 09:09 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