Page MenuHome

Graph Editor - curves not painted well
Closed, ArchivedPublic

Description

Hi, depending on the zoom level and positions, lines/f-curves get painted very poorly sometimes. I am not sure, if this is just a general thing, which is already on a todo to get improved, or if it is even related to some opengl issues (I haven't tried it on other systems myself).

I attached a screenshot.

r25137
Linux 2.6.30-2-686
OGL: GM965/GL960

Event Timeline

I can't really confirm this here. Do lines with anti-aliasing elsewhere draw ok?

The rest of the gui renders pretty ok. But I could find, that the curves in the nodes (time, rgb) have poor aa too. I know that aa is something which always causes problems on ogl hardware, but it is also apparent that the graph editor gets absolutely impossible to be used, if curves won't be rendered at all, as it does on some zoom levels and positions (you drag around and curves faint out until they can't be seen at all).

I attached another screenshot.

If you can compile, as a test, could you go into graph_draw.c in source/blender/editors/ and comment out all lines for glEnable(GL_LINE_SMOOTH); and glDisable(GL_LINE_SMOOTH); and see if the curves still look this bad?

Hopefully there shouldn't be any difference (i.e. your drivers/card simply ignores those commands instead of doing nasty things under certain circumstances). Otherwise, I might have to resort to some user-preference setting for OpenGL support, since having non-smoothed lines on other systems that work fine with this look really bad (i.e. the handle circles are prime examples, since here they can only have a consistent appearance when smoothing is turned on to eliminate pixel-alignment issues).

While you're testing blender with the code changes mentioned above, you may also try compiling with all of those lines left in as normal (i.e. as they are in svn), but including the line
glHint(GL_LINE_SMOOTH_HINT, GL_NICEST);
before the glEnable(GL_LINE_SMOOTH); lines...

Removing GL_LINE_SMOOTH draws the lines without any aa and correctly (see screenshot).

glHint(GL_LINE_SMOOTH_HINT, GL_NICEST); hints doesn't seem to change anything.


There is a similar bug here with drawing logic brick connectors:
http://projects.blender.org/tracker/index.php?func=detail&aid=20184&group_id=9&atid=498

Poor drawing of smooth lines with an Intel GMA 965 was confirmed on Windows as well, however upgrading graphics drivers to the latest version fixed the problem there. So I suspect this to be a driver problem. We could try to work around it, but in this case it's not that critical, so I would close this bug and wait for Intel to fix the problem in their Linux drivers as well (if they haven't already in a newer version).

Closing bug since it's in the Intel drivers and is not critical.

Brecht Van Lommel (brecht) changed the task status from Unknown Status to Archived.Jan 26 2010, 5:48 PM