Hi,
after re-compiling VTK 7.1 from OpenGL to OpenGL2, the rescaling of vtkTextActor stopped working.
The size of the text stays the same despite of the viewport/window size.
vtkSmartPointer textActor = vtkSmartPointer::New();
textActor->SetInput(“Hello world”);
textActor->SetTextScaleModeToViewport();
textActor->SetPosition2(10, 40);
textActor->GetTextProperty()->SetFontSize(24);
textActor->GetTextProperty()->SetColor(1.0, 0.0, 0.0);
renderer->AddActor2D(textActor);
Any ideas why this feature stopped working?
Thank you.
Best Regards,
Michael