Skip to content

Add FastLabelMapper

Stephen Hogarth requested to merge shogarth/vtk:add_fast_labels into master

This mapper uses GPU texture acceleration to draw labels at much higher frame rates. When hundreds or thousands of labels are on screen at one time, existing mappers can drop below 1 fps. This acceleration is designed to render the same number of labels at over 60 fps so a user can label many points while retaining interactive rotations and animations.

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)

History:

  • This is a continuation of !7203 (closed), and was started several years ago with Dave DeMarle
  • It has been upgraded to work with the current master branch and shader methods, including more extensive testing

Merge request reports