Results 1 to 3 of 3

Thread: unwanted stippling

  1. #1
    Member Contributor
    Join Date
    Oct 2001
    Location
    Fareham, England
    Posts
    59

    unwanted stippling

    Hi,

    I am rendering polygons to a 2D view.

    The polygons are like building blocks. If I do not show the polygon outline, I can see that I am getting some unwanted stippling effect underneath where the edges of two polygons meet.

    Does anyone have any idea what it is that I'm seeing and how it might be remedied.

    Thanks

    matthew

  2. #2
    Senior Member OpenGL Guru Relic's Avatar
    Join Date
    Apr 2000
    Posts
    2,450

    Re: unwanted stippling

    Rasterization in 3D graphics is generally only stitch free when polygon edges share the exact same coordinates.
    You will experience this with T-vertices, that is polygons where one long edge is aligned to two smaller ones like this

    Code :
     |     poly 1        |
    v0-------------------v1
    v0----------v2-------v1
                |
                |
        poly2   |  poly 3
                |
    where poly 1 has an edge from v0 to v1 and polys 2 and 3 share the same vertices v0 and v1 but have the edge split at v2.
    This is not going to end up without stitches!Different OpenGL implementations may show varying degrees of stitches, the more subpixel precision the rasterizer uses the better. But in general, avoid T-vertices!

    [This message has been edited by Relic (edited 07-14-2003).]

  3. #3
    Member Contributor
    Join Date
    Oct 2001
    Location
    Fareham, England
    Posts
    59

    Re: unwanted stippling

    Thanks for the reply relic.

    I had considered that something like that could be causing the trouble.

    For now it will have to remain for the time being. I actually render a border around each tesselated polygon which masks this effect anyhow.

    It's good to get the opinion of an expert. Thanks again.

    matthew

Similar Threads

  1. stippling masks and the bitmap format
    By applesauce in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 01-19-2006, 01:41 PM
  2. nv texture shader and line stippling
    By irionar in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 05-13-2002, 07:14 AM
  3. Line stippling not working
    By ZeoG in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 03-29-2002, 02:43 AM
  4. Line Stippling
    By Mongo in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 09-26-2001, 06:55 PM
  5. Stippling Polygons
    By Satapher in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 05-13-2000, 02:06 PM

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