gl-3.0

92 views
Skip to first unread message

Nicolas Rougier

unread,
Aug 14, 2012, 7:38:11 AM8/14/12
to freet...@googlegroups.com

Hi all,

I just created a gl-3.0 branch in order to remove deprecated features. All demos have been rewritten but the distance-field one.

If you can test and report issue or deprecated features...




Nicolas

Scott Graham

unread,
Dec 1, 2012, 2:42:01 PM12/1/12
to freet...@googlegroups.com
Hi,

I just tried out the gl-3.0 branch on Windows. I applied a bunch of changes mentioned in the "Big code cleanup" thread. I also had to add calls to glewInit() after glut's initialized, but I'm not familiar with glew so it could be that I installed it up incorrectly somehow.

I also had a question about demo-lcd.c. From looking at the shader it seems like it's trying to do a "cleartype"-ish subpixel positioning? But here https://code.google.com/p/freetype-gl/source/browse/branches/gl-3.0/demo-lcd.c#148 the "shift" is always 0 (and the x positions are all integral). I confirmed that I don't see any colour fringes when zooming in with a magnifier tool.

Should "shift" be the remainder of the x position perhaps? I'm also not entirely sure how the vertex color should be correctly combined with the subpixel fragment colour. Multiplying at the end as is happening now seems incorrect, because multiplying by rgb(0,0,0) seems like it'd remove all subpixel colour.

scott

Nicolas Rougier

unread,
Dec 3, 2012, 3:21:27 AM12/3/12
to freet...@googlegroups.com


Thanks. I intend to integrate all the fixes quite soon in the gl-3.0 branch.

For the subpixel things, you're right, the shader is shifting the glyph in the subpixel domain but the actual demo is "demo-subpixel.c" (subpixel positionning) while demo-lcd.c is only here to show subpixel rendering (freetype level).


Nicolas
Reply all
Reply to author
Forward
0 new messages