The previous post demonstrated how to render text on the GPU directly from its bezier curve representation. If you zoomed out far enough you may have noticed the text shimmering. This new demo implements a fix for the issue. The source material is Leo Tolstoy’s War And Peace from Project Gutenberg - 1273 pages with 2.7 million glyphs. Click here to see the WebGL demo Before (right) and after (left) the fix implemented in this demo. The problem The problem is too much complexity in one spot....| Will Dobbie
The demo data was generated by a C++ program that reads a PDF and spits out three files: a vector atlas, a vertex buffer and a JSON file with data for each page (dimensions, offset into vertex buffer). It could be extended to render all elements of a PDF (images, vector art). The vertex buffer contains only world position, color and the texture coordinates of the curve data. The grid texture coordinates and size are stored in the first two slots of the curve data and looked up in the vertex s...| Will Dobbie
About| wdobbie.com
GPU text rendering with vector textures| wdobbie.com