Skip to content

WIP: Fast Text

Stephen Hogarth requested to merge shogarth/vtk:WIP-fasttext-9.0 into master

Create a new fast label mapper which can render a much greater number of text labels at much faster speeds (many thousands of labels need to render at subsecond speeds). This is done by building a texture map of all the characters used by the labels to use GPU texture mapping to achieve the needed speed.

Features:

  • Renders labels quickly
  • Positions labels in 3D space (occluded point positions should also occlude their labels)
  • Labels are a fixed screen size (labels far away from the camera should still be the same screen size so they are still readable)
  • Label Styling (font, size, text color, background color)
  • Border Styling (size, background color)

Limitations:

  • The number of text/border style combinations is limited to about 32 permutations as a result of texture memory size restrictions.
  • Not all text formatting options are supported (though they aren't all currently needed)

Merge request reports