Quantcast
Channel: bugs, errors - openFrameworks
Viewing all articles
Browse latest Browse all 636

Conflict between depth test and line smoothing

$
0
0

@Elaye wrote:

Hello,
I'm drawing a mesh with the OF_PRIMITIVE_LINES mode. To smooth the lines I use this:

    glEnable(GL_LINE_SMOOTH);
    glHint(GL_LINE_SMOOTH_HINT, GL_NICEST);

The problem is that when I enable depth test (with ofEnableDepthTest), small gaps appear between the lines. You can see it in this image:

However if I enable only depth test or only line smoothing, these artifacts doesn't appear.
Do you have an idea of what is causing this or how to avoid this?

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 636

Trending Articles