vtkTextActor (0x26049358): Failed getting the TextRenderer instance!

How did this happen?

It looks like this is an object factory class. You’ll need to link to VTK::RenderingFreeType and add it to the autoinit list to get a concrete implementation of a text renderer. What version of VTK is this?

VTK 8.2

How did you try to build the example? Does the VTK you compiled against have the vtkRenderingFreetype module enabled? That is required to get text rendering to work.

Thanks Ben Boeckel

  • I solved this problem by adding VTK_MODULE_INIT(vtkRenderingFreeType) to the code
2 Likes