[vtk-developers] Where did my text go?

Sebastien BARRE sebastien.barre at kitware.com
Sat Jan 18 13:02:54 EST 2003


At 1/18/2003 12:42 PM, Bill Lorensen wrote:
>Folks,
>I have an app that displays text on top of an image. I'm using a 
>vtkRenderer with two vtkActor2D's, one for the image and one for the text. 
>I use AddActor2D to add the actors.
>
>The image is mapped with vtkImageMapper and the text with a vtkTextMapper. 
>I use vtkTextProperty to set the font and size of text.
>
>This (or a compatible earlier version) has been working for a couple of years.
>
>Recently, (I'm not sure when because I don't think we have a test that 
>renders text over an image), my text disappeared. If I don't  add the 
>image to the renderer, the text appears.
>
>Has anyone else seen this problem?

Can you send a Tcl script ?

I made a recent change/fix to vtkTextActor, but this should have the 
opposite effect, renders the text more "often" than before (a modified time 
was not checked).

I also know that for a while we have seen some text tests failing on the 
Mac where text would be partially occluded by geometry, raising the 
question of the Z position of the text on the Mac. Andy is working on it, 
maybe he commited something that makes the text be located below the image, 
I don't know, he will probably tell us.

--
Sebastien Barre





More information about the vtk-developers mailing list